code wiki / (root) / nx_https_redirect_test.nx

nx_https_redirect_test.nx

buildroot/runtime/nx_https_redirect_test.nx

3319 B65 linesdepth 3pulls 5 transitivereach 0 importersview sourcekind gate/prooftopic https
docsdependenciesstructsconstsfunctions

about

nx_https_redirect_test.nx -- gate for fetcher upgrade F-1 (redirect logic). Deterministic (canned responses, no network): proves (1) the 3xx status set, (2) Location extraction (exact bytes), (3) case-insensitive header match, (4) absent Location -> 0, (5) a non-redirect 200 is not followed.

dependencies 4 imports · 0 importers

nx_syscalls.nx nx_runtime.nx nx_tier.nx nx_https_redirect.nx nx_https_redirect_test.nx

imports: nx_syscalls.nxnx_runtime.nxnx_tier.nxnx_https_redirect.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 println sys_write strlen sys_mmap ↻ nx_assert_eq print sys_write ↻ strlen ↻ print_i64 sys_mmap ↻ itoa sys_mmap ↻ sys_write ↻ println ↻ nx_redir_is_redirect nx_redir_location sys_mmap ↻ nx_http_header_find nxhf_next_line nxhf_eq_ci nxhf_tolower t_slen t_bytes_eq print ↻ print_i64 ↻

structs

none

consts

none

functions

11func nx_assert_eq(label: *u8, got: nx_int, want: nx_int, pass_n: *nx_int, fail_n: *nx_int)
called by 1: main calls 3: printprint_i64println
17func t_slen(s: *u8) -> nx_int { var n: nx_int = 0; while s[n] != 0 as u8 { n = n + 1 } return n }
called by 1: main
18func t_bytes_eq(a: *u8, b: *u8, n: nx_int) -> nx_int
called by 1: main
24func main() -> nx_exit