code wiki / _hdl_build / nx_http_health_lib.nx

nx_http_health_lib.nx

buildroot/runtime/_hdl_build/nx_http_health_lib.nx

3336 B69 linesdepth 3pulls 3 transitivereach 44 importersview sourcekind librarytopic http
docsdependenciesstructsconstsfunctions

about

nx_http_health_lib.nx -- the REAL health check that was missing (the false-green that hid the outage: supervisor said sites.elf UP, deploy said HEALTHY, maturity said PRODUCTION -- all while the page was DOWN, because they checked "port bound"/"exit 0"/"gate-log green", NEVER "does the URL serve a valid page"). hh_probe makes an ACTUAL HTTPS request (the proven sovereign fetcher) and hh_healthy requires HTTP 200 + a non-empty body + (optionally) expected content. Connection-made / 500 / empty / wrong-content = UNHEALTHY. license_tier: ORIGINAL

dependencies 1 imports · 10 importers

nx_deploy_lib.nx nx_http_health_lib.nx nx_deploy_run.nx nx_health_monitor.nx nx_http_health.nx nx_http_health_gate.nx nx_mgmt_cap_data_candidate_t186.nx nx_mgmt_data.nx nx_mgmt_data.pre-toolchain-2026091 nx_mgmt_data_toolchain_session_202 nx_mgmt_deploy_data_candidate_t185 nx_site_liveness.nx

imports: nx_deploy_lib.nx

imported by: nx_deploy_run.nxnx_health_monitor.nxnx_http_health.nxnx_http_health_gate.nxnx_mgmt_cap_data_candidate_t186.nxnx_mgmt_data.nxnx_mgmt_data.pre-toolchain-20260910.nxnx_mgmt_data_toolchain_session_20260910.nxnx_mgmt_deploy_data_candidate_t185.nxnx_site_liveness.nx

structs

none

consts

8const K_MAGIC_16384: i64 = 16384
9const K_MAGIC_16380: i64 = 16380
10const K_MAGIC_262144: i64 = 262144
11const K_MAGIC_262140: i64 = 262140

functions

15func hh_after(buf: *u8, n: i64, key: *u8) -> i64
48func hh_healthy(http_status: i64, body_bytes: i64, body: *u8, body_n: i64, expect: *u8) -> i64
called by 2: mainhh_probe calls 1: dp_contains
59func hh_probe(url: *u8, expect: *u8, outfile: *u8, bodyfile: *u8) -> i64