code wiki / (root) / nx_http_backend_gate_t314.nx

nx_http_backend_gate_t314.nx

buildroot/runtime/nx_http_backend_gate_t314.nx

4955 B71 linesdepth 6pulls 10 transitivereach 0 importersview sourcekind tooltopic http
docsdependenciesstructsconstsfunctions

about

nx_http_backend_gate_t314.nx -- Tests HTTP response parsing and body handling with various content-length and transfer-encoding scenarios.

dependencies 2 imports · 0 importers

nx_tool_http_backend_candidate_t31 nx_itoa_lib.nx nx_http_backend_gate_t314.nx

imports: nx_tool_http_backend_candidate_t314.nxnx_itoa_lib.nx

imported by: nobody (leaf or entry point)

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

main tg_parse nx_http_response_complete nx_http_resp_parse_status_ nx_http_resp_status_code nx_http_resp_is_digit nx_http_resp_find_crlf nx_http_resp_find_crlf ↻ nx_http_resp_parse_header_ nx_http_resp_find_byte nx_http_resp_skip_ows nx_http_resp_find_crlf ↻ nx_http_resp_cieq nx_http_resp_lower nx_http_dechunk_consumed nx_http_resp_hex_val nx_http_resp_find_crlf ↻ thb_slen tg_check thb_slen ↻ thb_atoi thb_slen ↻ thb_sockaddr tg_exchange tg_check ↻ nx_fcntl fb_send_until fb_wait_event_until sys_now_ms sys_mmap nxa_die nxa_lock_take nxa_lock_give nxa_report_overrun sys_clock_gettime_mono fb_pfd_set sys_poll sys_sendto thb_slen ↻ thb_fetch_result

structs

none

consts

none

functions

6func tg_check(name:*u8,good:i64)->i64 { tg_all=tg_all+1;if good==1 {tg_ok=tg_ok+1;sys_write(1,"PASS " as *u8,5)}else{sys_write(1,"FAIL " as *u8,5)}sys_write(1,name,thb_slen(name));sys_write(1,"\n" as *u8,1);return good }
called by 2: tg_parsetg_exchange calls 1: thb_slen
7func tg_parse(name:*u8,src:*u8,want:i64,body:i64)->i64
13func tg_exchange(lfd:i64,port:i64,reply:*u8,delay:i64,budget:i64,expect:i64,name:*u8)->i64
41func main(argc:i64,av:*i64)->i64