code wiki / (root) / nx_http_client_post_test.nx

nx_http_client_post_test.nx

buildroot/runtime/nx_http_client_post_test.nx

3836 B102 linesdepth 6pulls 8 transitivereach 0 importersview sourcekind gate/prooftopic http
docsdependenciesstructsconstsfunctions

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

nx_syscalls.nx nx_http_client.nx nx_http_client_post_test.nx

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

main sys_mmap nx_http_client_build_reque nx_dec_emit_u63 _assert_eq sys_write

structs

none

consts

none

functions

22func _assert_eq(buf: *u8, exp: *u8, n: i64) -> i64
called by 1: main
31func main() -> i64