pub(all) struct Context {
http_method : HttpMethod
url_str : String
url : URL
route_path : String
req_headers : Map[String, String]
resp_headers : Map[String, String]
queries : Values
form_values : Values?
exts : ExtStore
path_params : Array[ParamKV]
req_body : &Reader
resp_writer : ServerConnection
}pub(all) struct RequestId {
}fn Router::add(self : Router, meth : HttpMethod, pattern : String, name? : String, mws? : Array[Middleware], handler : Handler) -> Unit raisefn Router::any(self : Router, pattern : String, name? : String, mws? : Array[Middleware], handler : Handler) -> Unit raiseasync fn Router::handle(self : Router, req : Request, req_body : &Reader, resp_writer : ServerConnection) -> Unitpub(all) struct UserId {
}let status_service_unavailable : Intlet status_unavailable_for_legal_reasons : Intlet unavailable : Int