nx_http_security_headers.nx
buildroot/runtime/nx_http_security_headers.nx
about
nx_http_security_headers.nx -- Enforces secure HTTP headers for XSS, clickjacking, MIME-sniffing, and privacy by default.
dependencies 0 imports · 2 importers
imports: none
imported by: nx_audit_server_routed.nxnx_http_security_headers_test.nx
structs
| none |
consts
| 2 | const NXSH_MAGIC_31536000: i64 = 31536000 |
| 50 | const NXSH_OK: i64 = 0 |
| 51 | const NXSH_OOM_BUFFER: i64 = 1 |
| 52 | const NXSH_BAD_LEVEL: i64 = 2 |
| 53 | const NXSH_BAD_ARG: i64 = 3 |
| 54 | const NXSH_VERDICT_N: i64 = 4 |
| 76 | const NXSH_STRICT: i64 = 0 |
| 77 | const NXSH_MODERATE: i64 = 1 |
| 78 | const NXSH_PERMISSIVE: i64 = 2 |
| 79 | const NXSH_LEVEL_N: i64 = 3 |
functions
| 56 | func nxsh_verdict_is_valid(v: i64) -> i64 called by 1: main |
| 62 | func nxsh_verdict_name(v: i64) -> *u8 |
| 81 | func nxsh_level_is_valid(L: i64) -> i64 |
| 87 | func nxsh_level_name(L: i64) -> *u8 called by 1: main |
| 96 | func nxsh_put(out: *u8, off: *i64, cap: i64, b: i64) -> i64 |
| 103 | func nxsh_put_cstr(out: *u8, off: *i64, cap: i64, s: *u8) -> i64 |
| 134 | func nx_http_emit_csp(out: *u8, off: *i64, cap: i64, level: i64) -> i64 |
| 164 | func nx_http_emit_x_frame_options(out: *u8, off: *i64, cap: i64, |
| 178 | func nx_http_emit_x_content_type_options(out: *u8, off: *i64, cap: i64) -> i64 |
| 189 | func nx_http_emit_referrer_policy(out: *u8, off: *i64, cap: i64, |
| 208 | func nx_http_emit_permissions_policy(out: *u8, off: *i64, cap: i64, |
| 220 | func nx_http_emit_hsts(out: *u8, off: *i64, cap: i64, |
| 258 | func nx_http_emit_dns_prefetch_off(out: *u8, off: *i64, cap: i64) -> i64 |
| 268 | func nx_http_emit_security_headers_bundle( |