This library is in flux. APIs may change without notice. Generated from source with koruc 0.1.7 on 8/19/2026.
HTTP
~import std/httpKoru Standard Library - HTTP Server
http.kz · 8 tors
Koru Standard Library - HTTP Server
Pure events with Zig implementations hidden in procs
http.parse-request
koru_std/http.kz:7// HTTP Request
~pub tor http.parse-request { data: string }
| request { method: string, path: string, headers: string, body: string }
| invalid stringhttp.response
koru_std/http.kz:55// HTTP Response Builder
~pub tor http.response {
status: u16,
status_text: string,
headers: string,
body: string
} -> stringhttp.match-route
koru_std/http.kz:73// Route matching
~pub tor http.match-route { path: string, pattern: string }
| matched string
| no-matchhttp.json-response
koru_std/http.kz:95// Simple JSON response helper
~pub tor http.json-response { status: u16, json: string } -> stringhttp.html-response
koru_std/http.kz:121// HTML response helper
~pub tor http.html-response { status: u16, html: string } -> stringhttp.mime-type
koru_std/http.kz:145// Static file serving helper
~pub tor http.mime-type { extension: string } -> stringhttp.url-decode
koru_std/http.kz:162// URL decode helper
~pub tor http.url-decode { encoded: string }
| decoded string
| error stringhttp.parse-query
koru_std/http.kz:198// Parse query string
~pub tor http.parse-query { query: string } -> string