nx_http_range_req.nx
buildroot/runtime/nx_http_range_req.nx
about
nx_http_range_req.nx -- ADDITIVE HTTP/1.1 Range request builder (RFC 9110 Section 14.2) -- the first piece of
CC-content fetch: to pull ONE Common Crawl record you request its byte-slice of the multi-GB .warc.gz via
"Range: bytes=START-END". Mirrors nx_http_client_build_request but adds the Range header (additive; existing builder
untouched). Gate verifies the exact request for the real example.com CC record (offset 176519143, length 946).
The follow-on wires this into the TLS fetch + gz-member inflate (nx_deflate) -> real CC record. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_https_fetch_follow.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 7 | const K_MAGIC_4096: i64 = 4096 |
| 8 | const K_MAGIC_176519143: i64 = 176519143 |
| 9 | const K_MAGIC_176520088: i64 = 176520088 |
functions
| 11 | func rr_app(out: *u8, o: i64, s: *u8) -> i64 { var i: i64=0; while s[i]!=(0 as u8){ out[o]=s[i]; o=o+1; i=i+1 } return o } called by 1: nx_http_build_range_get |
| 12 | func rr_appn(out: *u8, o: i64, s: *u8, n: i64) -> i64 { var i: i64=0; while i<n { out[o]=s[i]; o=o+1; i=i+1 } return o } called by 1: nx_http_build_range_get |
| 13 | func rr_u64(out: *u8, o: i64, v: i64) -> i64 |
| 23 | func nx_http_build_range_get(path: *u8, path_len: i64, host: *u8, host_len: i64, rstart: i64, rend: i64, out: *u8) -> i64 |
| 38 | func rr_find(hay: *u8, hn: i64, needle: *u8) -> i64 called by 1: main |
| 45 | func rr_w(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} sys_write(1,s,n); return 0 } |
| 46 | func rr_chk(cond: i64, name: *u8, acc: *i64) -> i64 { acc[1]=acc[1]+1; if cond==1 { acc[0]=acc[0]+1; rr_w(" PASS " as *u8) } else { rr_w(" FAIL " as *u8) } rr_w(name); rr_w("\n" as *u8); return 0 } |
| 48 | func main() -> i64 |