nx_http_io.nx
buildroot/runtime/nx_http_io.nx
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
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
| 36 | const NX_MAGIC_63072000: i64 = 63072000 |
| 40 | const NX_HTTP_REQ_CAP: i64 = 65536 |
| 41 | const NX_HTTP_RESP_CAP: i64 = 262144 |
functions
| 52 | func nx_http_parse_request( |
| 219 | func nx_http_write_response( |