code wiki / _hdl_build / nx_apistack_content.nx
nx_apistack_content.nx
buildroot/runtime/_hdl_build/nx_apistack_content.nx
about
nx_apistack_content.nx -- CAP-API-CONTENT: content-negotiation for /api. Reads the Accept header and picks the
first SUPPORTED media type the client accepts (or -1 => 406 Not Acceptable). "*/*" matches the first supported.
Deterministic serializer selection = the sovereign exceed over ad-hoc fixed Content-Type. license_tier: ORIGINAL
dependencies 1 imports · 1 importers
imports: nx_syscalls.nx
imported by: nx_apistack_content_gate.nx
structs
| none |
consts
| none |
functions
| 6 | func cn_len(s: *u8) -> i64 { var n: i64=0; while s[n]!=(0 as u8){n=n+1} return n } called by 1: cn_contains |
| 7 | func cn_contains(hay: *u8, hn: i64, needle: *u8) -> i64 |
| 13 | func cn_accepts(accept: *u8, accept_n: i64, media: *u8) -> i64 |
| 19 | func cn_choose(accept: *u8, accept_n: i64, supported: *i64, n: i64) -> i64 |