code wiki / (root) / nx_http_proxy_test.nx

nx_http_proxy_test.nx

buildroot/runtime/nx_http_proxy_test.nx

2369 B53 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind gate/prooftopic http
docsdependenciesstructsconstsfunctions

about

nx_http_proxy_test.nx -- gate the wired reverse-proxy: GET request-line rewrite (strip /research prefix, force HTTP/1.0 close, preserve query) + dotted-quad IP parse. The forward/relay is exercised live in the sites edge.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_http_proxy.nx nx_http_proxy_test.nx

imports: nx_syscalls.nxnx_http_proxy.nx

imported by: nobody (leaf or entry point)

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

main sys_mmap nx_http_proxy_rewrite pt_slen pt_has pt_slen ↻ nxp_parse_ip sys_write

structs

none

consts

none

functions

7func pt_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 2: pt_hasmain
8func pt_has(hay: *u8, hayn: i64, needle: *u8) -> i64
called by 1: main calls 1: pt_slen
23func main() -> i64