code wiki / _hdl_build / nx_site_handler_gate.nx

nx_site_handler_gate.nx

buildroot/runtime/_hdl_build/nx_site_handler_gate.nx

5503 B98 linesdepth 5pulls 6 transitivereach 0 importersview sourcekind gate/prooftopic site
docsdependenciesstructsconstsfunctions

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

nx_site_handler.nx nx_syscalls.nx nx_site_handler_gate.nx

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

main g_w sys_write sys_openat_wr sys_write ↻ g_len sys_close sys_mmap sh_handle sh_host sh_path rt_match sys_mmap ↻ rt_eol rt_split rt_tok_eq rt_slen rt_slice_eq rt_prefix_boundary rt_slice_atoi rt_mode_code rt_tok_eq ↻ sd_vhost cr_eol cr_split cr_is_sep cr_host_eq_ci cr_lc cr_copyz sys_read_file sys_openat_rd sys_lseek sys_mmap ↻ sys_read sys_close ↻ sh_cat sh_catn sh_catb g_row g_w ↻

structs

none

consts

26const GH_RT: *u8 = "nishifamily.com /gallery 18190 stream\n" as *u8
28const GH_VT: *u8 = "bradrwest.com /tmp/sh_docroot.html\nbrokensite.com /tmp/sh_does_not_exist.html\n" as *u8

functions

9func 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 }
called by 2: g_rowmain calls 1: sys_write
10func g_len(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
11func g_row(name: *u8, ok: i64) -> i64
called by 1: main calls 1: g_w
16func g_starts(buf: *u8, n: i64, s: *u8) -> i64
called by 1: main calls 1: g_len
20func g_contains(hay: *u8, n: i64, needle: *u8) -> i64
called by 1: main calls 1: g_len
30func main() -> i64