nx_http_probe.nx
buildroot/runtime/nx_http_probe.nx
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
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
structs
| none |
consts
| 8 | const K_MAGIC_8080: i64 = 8080 |
| 9 | const K_MAGIC_4194304: i64 = 4194304 |
functions
| 11 | func hp_strlen(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: main |
| 13 | func 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 |
| 15 | func hp_contains(buf: *u8, n: i64, needle: *u8) -> i64 called by 1: main |
| 23 | func main(argc: i64, argv: *i64) -> i64 |