code wiki / _hdl_build / nx_http_head_probe.nx
nx_http_head_probe.nx
buildroot/runtime/_hdl_build/nx_http_head_probe.nx
about
nx_http_head_probe.nx -- diagnostic: fetch a URL and print the HTTP
status line + transfer model + key headers (Location, Content-Type).
The measure-first tool for "what does this URL actually return?" --
distinguishes a 3xx redirect (needs redirect-following) from a 200
with empty/JS body. Composes the SAME sovereign stack as nish
(nx_https_get + nx_http_response_parse), no new capability.
nx_http_head_probe <https-url>
(B)-tutor diagnostic; reusable basis for nish redirect-following.
dependencies 5 imports · 0 importers
imports: nx_syscalls.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_https_get.nxnx_http_response_parse.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
| 14 | const K_MAGIC_4194304: i64 = 4194304 |
| 15 | const K_MAGIC_524288: i64 = 524288 |
functions
| 17 | func _p(fd: i64, s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(fd,s,n); return 0 } |
| 18 | func _pn(fd: i64, v: i64) -> i64 |
| 27 | func _pv(fd: i64, buf: *u8, off: i64, len: i64) -> i64 |
| 33 | func main(argc: i64, argv: *i64) -> i64 |