nx_http_client_post_test.nx
buildroot/runtime/nx_http_client_post_test.nx
about
nx_http_client_post_test.nx -- KAT for nx_http_client_build_request_post.
Asserts the wire-byte output for a representative ACME-style POST
matches an exact RFC 7230 ยง3 reference string. Body is a small
JSON-ish payload; content-type pinned to application/jose+json.
Reference (header line endings shown as visible \r\n):
POST /acme/new-account HTTP/1.1\r\n
Host: acme-staging-v02.api.letsencrypt.org\r\n
Content-Type: application/jose+json\r\n
Content-Length: 11\r\n
Connection: close\r\n
\r\n
{"hi":"x"}\n
Total bytes (header up to "\r\n\r\n") + body 11 bytes.
dependencies 2 imports · 0 importers
imports: nx_syscalls.nxnx_http_client.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| none |
functions
| 22 | func _assert_eq(buf: *u8, exp: *u8, n: i64) -> i64 called by 1: main |
| 31 | func main() -> i64 |