code wiki / (root) / nx_https_fetch.nx

nx_https_fetch.nx

buildroot/runtime/nx_https_fetch.nx

3945 B80 linesdepth 19pulls 127 transitivereach 2 importersview sourcekind librarytopic https
docsdependenciesstructsconstsfunctions

about

nx_https_fetch.nx -- sovereign authed / extra-header HTTPS GET, REUSABLE primitive (LangIntel oracle lever). 100% our stack: OUR TLS 1.3 client + trust store + nx_https_req_complete send/recv core (the SAME path as nx_https_get). The ONLY delta vs the plain fetch is caller-supplied extra request headers (Authorization, Accept, ...), built via nx_http_client_build_request_xhdr. NO curl, NO graphql, NO libc, NO fetch shim. nx_https_get_cli queued to adopt this to dedup its inline TLS setup (coordinated DRY consolidation rung). license_tier: ORIGINAL

dependencies 10 imports · 2 importers

nx_syscalls.nx nx_csprng.nx nx_x509_trust_store.nx nx_trust_store_load_from_certdata. nx_tls13_client_validate_certifica nx_tls13_client_session_run.nx nx_https_url_for_fetch.nx nx_https_url_connect.nx nx_https_get_complete.nx nx_tls_cert_cache.nx nx_https_fetch.nx nx_ghfetch.nx nx_https_fetch_test.nx

imports: nx_syscalls.nxnx_csprng.nxnx_x509_trust_store.nxnx_trust_store_load_from_certdata.nxnx_tls13_client_validate_certificate.nxnx_tls13_client_session_run.nxnx_https_url_for_fetch.nxnx_https_url_connect.nxnx_https_get_complete.nxnx_tls_cert_cache.nx

imported by: nx_ghfetch.nxnx_https_fetch_test.nx

structs

none

consts

17const HF_MAGIC_4194304: i64 = 4194304
18const HF_MAGIC_1024: i64 = 1024
20const HF_CERTDATA: *u8 = "data/mozilla_certdata.txt" as *u8

functions

25func nx_https_fetch_hdr(url: *u8, xhdr: *u8, xhdr_len: i64, out: *u8, out_cap: i64) -> i64