code wiki / (root) / nx_http_io.nx

nx_http_io.nx

buildroot/runtime/nx_http_io.nx

21378 B438 linesdepth 2pulls 2 transitivereach 84 importersview sourcekind librarytopic http
docsdependenciesstructsconstsfunctions

about

nx_http_io.nx -- sovereign HTTP request/response primitives. Replaces the bash ide_handler.sh. Pure NishiLang, no libc, no netcat in the loop, no socat. Parses just enough HTTP/1.1 to drive the /ide backend: method, path, Content-Length. Writes responses with explicit byte counts. genealogy_id: rfc_7230_http_1_1 + hyper_rs_design_notes + nishi_pages_v1_pages_nx lineage_id: nx_http_primitive_q10 nx_safety_envelope: intended_use: "HTTP/1.1 server-side primitive -- accept, request-line parse, response-emit. Substrate- native replacement for nginx/apache/wordpress at the byte level." sil_target: SIL2 (HTTP server; bug = remote exposure) asil_target: QM dal_target: NONE evidence: [RFC_7230_canonical_basis, sealed_verdict_enum, no_FP, bounded_line_buffer_4KB, request_method_table_complete] hazard_register: [bug-tape-HTTP-request-smuggling, bug-tape-CRLF-injection-via-header, bug-tape-slowloris-resource-exhaustion] residual_risk: "Slowloris / slow-read DoS mitigation requires connection-time budgets upstream. Request smuggling defense: strict CRLF + no Transfer-Encoding-Content-Length ambiguity (substrate enforces; verification smoke queued)." verdict: NOT_YET_EVALUATED

dependencies 1 imports · 4 importers

nx_syscalls.nx nx_http_io.nx nx_http_request_adversarial_test.n nx_http_server.nx nx_wiki_https_daemon.nx nx_wiki_https_daemon_mv.nx

imports: nx_syscalls.nx

imported by: nx_http_request_adversarial_test.nxnx_http_server.nxnx_wiki_https_daemon.nxnx_wiki_https_daemon_mv.nx

structs

none

consts

36const NX_MAGIC_63072000: i64 = 63072000
40const NX_HTTP_REQ_CAP: i64 = 65536
41const NX_HTTP_RESP_CAP: i64 = 262144

functions

52func nx_http_parse_request(
219func nx_http_write_response(
called by 1: hub_serve_client calls 2: sys_mmapsys_write