nx_mock_web.nx
buildroot/runtime/nx_mock_web.nx
about
nx_mock_web.nx -- a tiny loopback "web" for end-to-end crawl testing.
Serves a few real HTML pages by path (including an adult-aggregator-style
page) so we can prove the crawler finds uncensored content over real HTTP,
in-sandbox, with no external network. Run alongside nx_crawl_run.
dependencies 2 imports · 0 importers
imports: nx_str.nxnx_http_server.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
| 7 | const NX_MAGIC_8192: i64 = 8192 |
| 8 | const NX_MAGIC_16384: i64 = 16384 |
| 10 | const NX_MOCK_PORT: i64 = 8088 |
functions
| 12 | func bputc(buf: *u8, pos: *i64, cap: i64, c: i64) -> i64 { if pos[0] < cap { buf[pos[0]] = c; pos[0] = pos[0] + 1 } return 0 } called by 1: bput |
| 13 | func bput(buf: *u8, pos: *i64, cap: i64, s: *u8) -> i64 { let n: i64 = nx_str_len(s); var i: i64 = 0; while i < n { bputc(buf, pos, cap, s[i] as i64); i = i + 1 } return 0 } |
| 16 | func mw_contains(req: *u8, off: i64, len: i64, needle: *u8) -> i64 |
| 33 | func main() -> i64 |