nx_lib_http.nx
buildroot/runtime/nx_lib_http.nx
about
nx_lib_http.nx -- PURE HTTP routing/response for the sovereign library API.
No main, no sockets: request-path -> full HTTP response bytes, straight from
nx_lib_store via nx_lib_serve. Gateable in isolation; the daemon nx_lib_httpd
wraps it with the socket accept loop.
GET /api/works -> JSON array of work_hks
GET /api/work/<hk> -> JSON work record (200) or 404
license_tier: ORIGINAL
dependencies 5 imports · 5 importers
imports: nx_lib_serve.nxnx_lib_index.nxnx_lib_ingest.nxnx_lib_ingest_tsv.nxnx_lib_page.nx
imported by: nx_lib_e2e_test.nxnx_lib_http_test.nxnx_lib_httpd.nxnx_lib_research_alias_gate.nxnx_lib_write_test.nx
structs
| none |
consts
| none |
functions
| 14 | func lhd_puts(buf: *u8, off: i64, s: *u8) -> i64 |
| 22 | func lhd_putdec(buf: *u8, off: i64, v: i64) -> i64 |
| 34 | func lhd_eq(path: *u8, path_n: i64, s: *u8) -> i64 |
| 42 | func lhd_starts(path: *u8, path_n: i64, pre: *u8) -> i64 |
| 53 | func lhd_response(path: *u8, path_n: i64, out: *u8) -> i64 called by 7: mainlhd_responsemainlhd_handlega_casemain+1 calls 10: lhd_startslhd_page_homelhd_responselhd_eqlhd_page_worknx_lib_serve_list+4 |
| 148 | func lhd_ingest_response(body: *u8, body_n: i64, out: *u8) -> i64 |