code wiki / _hdl_build / nx_site_handler_gate.nx
nx_site_handler_gate.nx
buildroot/runtime/_hdl_build/nx_site_handler_gate.nx
about
nx_site_handler_gate.nx -- SOVEREIGN in-process gate for the reconciled daemon's request handler (no TLS/socket).
Crafts HTTP request bytes -> asserts the handler's decision/response: an app route -> PROXY signal (port+mode for
the transport to relay); a provisioned vhost -> SERVE its docroot (200 + the file); unknown -> 404. Host parsing
is case-insensitive; a vhost whose docroot file is missing -> 404 (no half-served page). GREEN iff T1..T6.
Sovereign: nx_site_handler + nx_syscalls. license_tier: ORIGINAL
dependencies 2 imports · 0 importers
imports: nx_site_handler.nxnx_syscalls.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
| 26 | const GH_RT: *u8 = "nishifamily.com /gallery 18190 stream\n" as *u8 |
| 28 | const GH_VT: *u8 = "bradrwest.com /tmp/sh_docroot.html\nbrokensite.com /tmp/sh_does_not_exist.html\n" as *u8 |
functions
| 9 | func g_w(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 10 | func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n } |
| 11 | func g_row(name: *u8, ok: i64) -> i64 |
| 16 | func g_starts(buf: *u8, n: i64, s: *u8) -> i64 |
| 20 | func g_contains(hay: *u8, n: i64, needle: *u8) -> i64 |
| 30 | func main() -> i64 |