code wiki / (root) / nx_http_dechunk.nx

nx_http_dechunk.nx

buildroot/runtime/nx_http_dechunk.nx

2813 B66 linesdepth 2pulls 2 transitivereach 20 importersview sourcekind librarytopic http
docsdependenciesstructsconstsfunctions

about

nx_http_dechunk.nx -- sovereign HTTP/1.1 chunked transfer-encoding decoder. Fills the gap BOTH nx_html_to_text and nx_browse_text self-document as MISSING ("Chunked transfer dechunking before render"). Decodes the wire framing <hexsize>[;chunk-ext]CRLF <data> CRLF ... 0 CRLF [trailers] CRLF into a contiguous body. Reusable across the whole browser/research stack (UXF arc R1b needs it -- the Avro fetch returned BK=2 = chunked). DEFENSIVE AT THE BOUNDARY (Rule 12 -- network input is untrusted): any malformed framing returns a negative verdict and NEVER writes out of bounds. returns: decoded length (>=0) | (0-1) OVERFLOW (out_cap too small) | (0-2) MALFORMED No firmware/persistent-hardware writes (Rule 26: fail-safe by construction). license_tier: ORIGINAL

dependencies 1 imports · 6 importers

nx_syscalls.nx nx_http_dechunk.nx nx_entity_media.nx nx_entity_seeds.nx nx_http_dechunk_test.nx nx_ipp_transport.nx nx_uxf_extract.nx nx_uxf_extract_avro.nx

imports: nx_syscalls.nx

imported by: nx_entity_media.nxnx_entity_seeds.nxnx_http_dechunk_test.nxnx_ipp_transport.nxnx_uxf_extract.nxnx_uxf_extract_avro.nx

structs

none

consts

none

functions

17func hd_hexval(b: i64) -> i64
called by 1: nx_http_dechunk
24func nx_http_dechunk(src: *u8, n: i64, out: *u8, out_cap: i64) -> i64
called by 4: mainmainux_processmain calls 1: hd_hexval