code wiki / (root) / nx_http_proxy_probe.nx

nx_http_proxy_probe.nx

buildroot/runtime/nx_http_proxy_probe.nx

1373 B23 linesdepth 6pulls 7 transitivereach 0 importersview sourcekind probetopic http
docsdependenciesstructsconstsfunctions

about

nx_http_proxy_probe.nx -- LIVE end-to-end proof of the reverse-proxy: simulate the sites edge receiving "GET /research/work/GBIF_1000003" for nishifamily.com, relay it through nx_http_proxy_relay to the library backend (:8095), and print the response the edge would TLS-send to the browser.

dependencies 2 imports · 0 importers

nx_syscalls.nx nx_http_proxy.nx nx_http_proxy_probe.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 sys_write nx_http_proxy_relay sys_mmap ↻ nx_http_proxy_rewrite nx_http_proxy_forward sys_mmap ↻ nxp_parse_ip sys_socket nxp_sockaddr nx_connect_bounded nx_fcntl sys_connect sys_mmap ↻ sys_poll sys_close sys_write ↻ sys_read pp_slen

structs

none

consts

7const K_MAGIC_262144: i64 = 262144
8const K_MAGIC_8095: i64 = 8095

functions

10func pp_slen(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } return n }
called by 1: main
12func main() -> i64