code wiki / (root) / nx_http_probe.nx

nx_http_probe.nx

buildroot/runtime/nx_http_probe.nx

2528 B45 linesdepth 6pulls 9 transitivereach 0 importersview sourcekind probetopic http
docsdependenciesstructsconstsfunctions

about

nx_http_probe.nx -- sovereign HTTP GET probe; retires Invoke-WebRequest for checking localhost endpoints. Composes nx_http_client_get (TCP connect + GET + read-to-EOF) with positional argv and the canonical nx_gate output. Usage: nx_http_probe <path> [expect-substring] [port] Prints "GET <path> -> status=<code> bytes=<n>"; if expect given, FOUND/MISSING (exit 3 on MISSING, 2 on conn-fail). No shell, no curl, no PowerShell. license_tier: ORIGINAL

dependencies 2 imports · 0 importers

nx_http_client.nx nx_gate.nx nx_http_probe.nx

imports: nx_http_client.nxnx_gate.nx

imported by: nobody (leaf or entry point)

call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown

main gw sys_write hp_atoi nx_http_client_sockaddr_ip nx_http_client_get sys_socket nx_connect_bounded nx_fcntl sys_connect sys_mmap sys_poll sys_close sys_mmap ↻ nx_http_client_build_reque hc_put_caps sys_mmap ↻ nx_codec_caps_headers sys_mmap ↻ nx_codec_caps_accept_docum sys_mmap ↻ nx_codec_caps_accept_image nx_cc_put nx_codec_caps_accept_encod cc_encoding_have nx_cc_put ↻ cc_encoding_name nx_cc_put ↻ sys_write ↻ _drain sys_read hp_strlen gn sys_write ↻ sys_mmap ↻ hp_contains

structs

none

consts

8const K_MAGIC_8080: i64 = 8080
9const K_MAGIC_4194304: i64 = 4194304

functions

11func hp_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n }
called by 1: main
13func hp_atoi(buf: *u8, off: i64, len: i64) -> i64 { var v: i64=0; var i: i64=0; while i<len { let d: i64=buf[off+i] as i64; if d>=48 { if d<=57 { v=v*10+(d-48) } else { i=len } } else { i=len } i=i+1 } return v }
called by 1: main
15func hp_contains(buf: *u8, n: i64, needle: *u8) -> i64
called by 1: main
23func main(argc: i64, argv: *i64) -> i64