Lets
get = verb(HttpGet)
- Source Edit
post = verb(HttpPost)
- Source Edit
put = verb(HttpPut)
- Source Edit
delete = verb(HttpDelete)
- Source Edit
head = verb(HttpHead)
- Source Edit
patch = verb(HttpPatch)
- Source Edit
options = verb(HttpOptions)
- Source Edit
trace = verb(HttpTrace)
- Source Edit
connect = verb(HttpConnect)
- Source Edit
Procs
proc reject(): Handler {.
raises: [], tags: [].}- Source Edit
proc complete(code: HttpCode; body: string; headers = newHttpHeaders()): Handler {.
raises: [], tags: [].}- Source Edit
proc ok(s: string): Handler {.
raises: [], tags: [].}- Source Edit
proc notFound(s: string = "Not Found"): Handler {.
raises: [], tags: [].}- Source Edit
proc path(s: string): Handler {.
raises: [], tags: [].}- Source Edit
proc pathChunk(s: string): Handler {.
raises: [], tags: [].}- Source Edit
proc pathEnd(p: proc (s: string): Handler): Handler {.
raises: [], tags: [].}- Source Edit
proc segment(p: proc (s: string): Handler): Handler {.
raises: [], tags: [].}- Source Edit
proc intSegment(p: proc (n: int): Handler): Handler {.
raises: [Exception], tags: [RootEffect].}- Source Edit
proc body(p: proc (s: string): Handler): Handler {.
raises: [], tags: [].}- Source Edit
proc verb(m: HttpMethod): Handler {.
raises: [], tags: [].}- Source Edit
proc logResponse(s: string): Handler {.
raises: [], tags: [].}- Source Edit
proc logRequest(s: string): Handler {.
raises: [], tags: [].}- Source Edit
proc failWith(code: HttpCode; s: string): auto {.
raises: [], tags: [].}- Source Edit