nx_http_client.nx
buildroot/runtime/nx_http_client.nx
about
dependencies 4 imports · 50 importers
diagram shows first 10 each side; +0 more imports, +40 more importers in the complete lists below.
imports: nx_syscalls.nxnx_connect.nxnx_dec_emit.nxnx_codec_caps.nx
imported by: nx_acme_http.nxnx_aw_smoke.nxnx_bright_rewrite_lib.nxnx_browser_image_demo_test.nxnx_browser_page_demo_test.nxnx_cms_admin_gate.nxnx_cms_webdev_gate.nxnx_crawl_bfs.nxnx_crawl_main.nxnx_crawl_polite.nxnx_crawl_run.nxnx_embed_live_gate.nxnx_engine_dispatch.nxnx_f32_llm_serve.nxnx_forge_model.nxnx_http_client_gate.nxnx_http_client_post_test.nxnx_http_fetch.nxnx_http_loopback_gate.nxnx_http_post.nxnx_http_post_gate.nxnx_http_probe_lib.nxnx_http_tracker.nxnx_https_client.nxnx_https_get_complete.nxnx_https_get_spoof.nxnx_https_get_stream.nxnx_https_post_complete.nxnx_https_post_lib_gate.nxnx_live_crawl.nxnx_llm_batch_serve.nxnx_media_e2e_gate.nxnx_mesh_autoscale.nxnx_mesh_gen.nxnx_mesh_hostagent.nxnx_mesh_lb.nxnx_mesh_probe.nxnx_modelprobe.nxnx_office_serve.nxnx_search_crawl_server.nxnx_studio_e2e_gate.nxnx_torrent_daemon_gate.nxnx_torrent_gw.nxnx_torrent_stream_live_gate.nxnx_video_get.nxnx_vroom_loadtest.nxnx_wiki_projects.nxnx_writehub_grow.nxnx_writehub_seat.nxnx_writer_probe.nx
structs
| none |
consts
| 35 | const NX_MAGIC_1024: i64 = 1024 |
| 64 | const HC_CH_UPPER_A: i64 = 65 |
| 65 | const HC_CH_UPPER_Z: i64 = 90 |
| 66 | const HC_CH_CASE_DELTA: i64 = 32 |
| 67 | const HC_UA_BROWSER: i64 = 0 // default: Chrome UA matching our JA3. The browsing/HTTPS-GET/torrent paths. |
| 68 | const HC_UA_BOT: i64 = 1 // honest crawler identity. The bulk crawler MUST select this. |
| 148 | const HC_CH_DQUOTE: i64 = 34 |
| 214 | const NX_MAGIC_4096: i64 = 4096 |
| 217 | const NX_HTTP_C_VERDICT_UNKNOWN: i64 = 0 |
| 218 | const NX_HTTP_C_VERDICT_OK: i64 = 1 |
| 219 | const NX_HTTP_C_VERDICT_SOCKET_FAIL: i64 = 2 |
| 220 | const NX_HTTP_C_VERDICT_CONNECT_FAIL: i64 = 3 |
| 221 | const NX_HTTP_C_VERDICT_SEND_FAIL: i64 = 4 |
| 222 | const NX_HTTP_C_VERDICT_RECV_FAIL: i64 = 5 |
| 223 | const NX_HTTP_C_VERDICT_N: i64 = 6 |
| 238 | const NX_HTTP_C_CONNECT_MS: i64 = 6000 |
| 719 | const HC_HEADER_BAD_NAME: i64 = 0 - 40 |
| 720 | const HC_HEADER_BAD_VALUE: i64 = 0 - 41 |
| 721 | const HC_HEADER_OWNED_FIELD: i64 = 0 - 42 |
functions
| 70 | func hc_set_identity(mode: i64) -> i64 { hc_ua_mode_g = mode; return mode } called by 1: main |
| 71 | func hc_identity() -> i64 { return hc_ua_mode_g } |
| 76 | func hc_put_ua(out: *u8, o0: i64) -> i64 |
| 108 | func hc_xhdr_has_field(xhdr: *u8, xhdr_len: i64, pat: *u8) -> i64 |
| 126 | func hc_xhdr_has_ua(xhdr: *u8, xhdr_len: i64) -> i64 { return hc_xhdr_has_field(xhdr, xhdr_len, "user-agent:" as *u8) } |
| 131 | func hc_xhdr_has_ae(xhdr: *u8, xhdr_len: i64) -> i64 { return hc_xhdr_has_field(xhdr, xhdr_len, "accept-encoding:" as *u8) } |
| 140 | func hc_put_ua_x(out: *u8, o: i64, xhdr: *u8, xhdr_len: i64) -> i64 |
| 150 | func hc_puts(out: *u8, o0: i64, s: *u8) -> i64 |
| 157 | func hc_putb(out: *u8, o: i64, b: i64) -> i64 { out[o] = b as u8; return o + 1 } |
| 181 | func hc_put_hints(out: *u8, o0: i64) -> i64 |
| 202 | func hc_put_caps(out: *u8, o: i64) -> i64 |
| 255 | func nx_http_client_request_cap(path_len: i64, host_len: i64, cookie_len: i64, xhdr_len: i64) -> i64 |
| 259 | func nx_http_client_build_request( |
| 313 | func nx_http_client_build_request_xhdr( |
| 355 | func nx_http_client_build_request_cookie( |
| 408 | func nx_http_client_build_request_cookie_xhdr( |
| 472 | func nx_http_client_build_request_post( |
| 561 | func nx_http_client_build_request_post_xhdr( |
| 637 | func nx_http_client_sockaddr_ipv4( |
| 657 | func _drain(fd: i64, buf: *u8, cap: i64) -> i64 |
| 674 | func nx_http_client_get( |
| 713 | func nx_http_c_verdict_is_valid(v: i64) -> i64 |
| 724 | func hc_header_token(c: i64) -> i64 |
| 731 | func hc_header_name_equal(p: *u8,n: i64,name: *u8) -> i64 |
| 743 | func hc_header_line_size(p: *u8,n: i64) -> i64 |