nx_https_fetch_lib.nx
buildroot/runtime/nx_https_fetch_lib.nx
about
dependencies 19 imports · 15 importers
diagram shows first 10 each side; +9 more imports, +5 more importers in the complete lists below.
imports: nx_syscalls.nxnx_connect.nxnx_csprng.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_tls13_chrome_session.nxnx_https_url_for_fetch.nxnx_http_resolve_redirect.nxnx_redirect_resolve.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_https_get_stream.nxnx_tls_cert_cache.nxnx_tls12_client_session.nxnx_http_response_parse.nxnx_gzip_wrap.nxnx_zlib_wrap.nx
imported by: nx_browser_page_demo_test.nxnx_edge_vantage.nxnx_fetch_status_live_gate_t252.nxnx_funcheck.nxnx_gen_http_verify.nxnx_http_client_gate.nxnx_http_dechunk_boundary_gate.nxnx_https_fetch_file.nxnx_https_fetch_lib_gate.nxnx_https_get_cli.nxnx_https_post_lib.nxnx_mvault.nxnx_mvault_fetch.nxnx_publish_verify.nxnx_vault_capture.nx
structs
| none |
consts
| 41 | const HF_MAGIC_2047: i64 = 2047 |
| 42 | const HF_MAGIC_2048: i64 = 2048 |
| 43 | const HF_T12_PT_CAP: i64 = 20000 |
| 44 | const HF_T12_MAX_RECORDS: i64 = 4096 |
| 46 | const HF_CERTDATA: *u8 = "data/mozilla_certdata.txt\x00" |
| 47 | const HF_STORE_CAP: i64 = 4194304 |
| 51 | const HF_ERR_STORE: i64 = 0 - 2 |
| 52 | const HF_ERR_URL: i64 = 0 - 3 |
| 53 | const HF_ERR_CONNECT: i64 = 0 - 4 |
| 54 | const HF_ERR_TLS: i64 = 0 - 5 |
| 55 | const HF_ERR_HTTP: i64 = 0 - 6 |
| 56 | const HF_ERR_HEADERS: i64 = 0 - 7 |
| 57 | const HF_ERR_HEADER_REDIRECT: i64 = 0 - 8 |
| 62 | const HF_DEC_IDENTITY: i64 = 0 - 30 // nothing to strip: caller keeps the original bytes verbatim |
| 63 | const HF_DEC_ECODING: i64 = 0 - 31 // br/zstd/stacked: we cannot decode it, so we REFUSE rather than emit wrong bytes |
| 64 | const HF_DEC_CHUNK: i64 = 0 - 32 // malformed chunked framing -- refuse a partial document |
| 65 | const HF_DEC_INFLATE: i64 = 0 - 33 // invalid or unsupported compressed stream |
| 66 | const HF_DEC_CAPACITY: i64 = 0 - 34 // caller-owned decoded output budget exhausted |
functions
| 69 | func hf_store_load() -> i64 |
| 90 | func hf_open(store_i: i64, url: *u8, cip: i64, cport: i64, box: *i64) -> i64 |
| 201 | func hf_fetch_to_file_once(store_i: i64, url: *u8, cip: i64, cport: i64, loc: *u8, |
| 235 | func hf_fetch12_headers_once(store_i: i64, url: *u8, cip: i64, cport: i64, out: *u8, cap: i64, xhdr: *u8, xhdr_len: i64) -> i64 |
| 337 | func hf_fetch12_once(store_i: i64,url: *u8,cip: i64,cport: i64,out: *u8,cap: i64) -> i64 |
| 346 | func hf_fetch_headers_once(store_i: i64, url: *u8, cip: i64, cport: i64, out: *u8, cap: i64, xhdr: *u8, xhdr_len: i64) -> i64 |
| 359 | func hf_fetch_once(store_i: i64,url: *u8,cip: i64,cport: i64,out: *u8,cap: i64) -> i64 calls 1: hf_fetch_headers_once |
| 366 | func hf_location(resp: *u8, n: i64, out: *u8, cap: i64) -> i64 |
| 416 | func hf_fetch_mode_headers(store_i: i64, url: *u8, cip: i64, cport: i64, out: *u8, cap: i64, decode: i64, xhdr: *u8, xhdr_len: i64) -> i64 called by 2: hf_fetch_modemain calls 12: hf_header_block_valid_gc_slensys_mmapsys_munmaphf_fetch_headers_oncehf_status+6 |
| 467 | func hf_fetch_mode(store_i: i64,url: *u8,cip: i64,cport: i64,out: *u8,cap: i64,decode: i64) -> i64 |
| 473 | func hf_fetch(store_i: i64, url: *u8, cip: i64, cport: i64, out: *u8, cap: i64) -> i64 |
| 495 | func hf_fetch_to_file(store_i: i64, url: *u8, cip: i64, cport: i64, |
| 528 | func hf_body_off(resp: *u8, n: i64) -> i64 |
| 538 | func hf_status(resp: *u8, n: i64) -> i64 |
| 581 | func hfd_streq(a: *u8, b: *u8) -> i64 called by 1: hfd_hdr_enc |
| 588 | func hfd_hexval(c: i64) -> i64 |
| 597 | func hfd_hdr_chunked(b: *u8, he: i64) -> i64 |
| 618 | func hfd_hdr_enc(b: *u8, he: i64) -> i64 |
| 671 | func hfd_dechunk(src: *u8, n: i64, out: *u8, cap: i64) -> i64 |
| 676 | func hfd_rename_hdr(b: *u8, he: i64, pat: *u8, rep: *u8, plen: i64) -> i64 called by 1: hf_decode_transport |
| 705 | func hf_decode_transport(resp: *u8, n: i64, out: *u8, cap: i64) -> i64 |
| 754 | func hf_header_block_valid(p: *u8,n: i64) -> i64 |
| 770 | func hf_header_redirect_same_origin(a: *u8,b: *u8) -> i64 |