nx_http_health_lib.nx
buildroot/runtime/nx_http_health_lib.nx
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
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
| 8 | const K_MAGIC_16384: i64 = 16384 |
| 9 | const K_MAGIC_16380: i64 = 16380 |
| 10 | const K_MAGIC_262144: i64 = 262144 |
| 11 | const K_MAGIC_262140: i64 = 262140 |
functions
| 15 | func hh_after(buf: *u8, n: i64, key: *u8) -> i64 |
| 48 | func hh_healthy(http_status: i64, body_bytes: i64, body: *u8, body_n: i64, expect: *u8) -> i64 |
| 59 | func hh_probe(url: *u8, expect: *u8, outfile: *u8, bodyfile: *u8) -> i64 |