rho.router
The module module rho.router, read from src/rho.router.rho. This page is generated from the source, so it describes what the code declares.
Functions
page_limit()
fn page_limit(req: Request, ceiling: u32) u32
page_path()
fn page_path(req: Request) string
search_query()
fn search_query(req: Request) string
Externs
Externs are supplied by the host rather than declared in Rho, which is how a port reaches a service.
| Extern | Signature |
|---|---|
| has_field | extern fn has_field(req: Request, name: string) bool |
| has_header | extern fn has_header(req: Request, name: string) bool |
| has_path | extern fn has_path(req: Request, name: string) bool |
| has_query | extern fn has_query(req: Request, name: string) bool |
| query_default | extern fn query_default(req: Request, name: string, fallback: string) string |