code wiki / (root) / nx_http_health_lib.nx

nx_http_health_lib.nx

buildroot/runtime/nx_http_health_lib.nx

3336 B69 linesdepth 4pulls 4 transitivereach 16 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 · 6 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_data.nx 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_data.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