Call
struct CallA request as its handler sees it: where it went, the route's parameters, its form and who sent it.
Implements Movable
- Fields
url: String: The path and its query, as asked.path: Stringparams: Dict[String, String]form: String: APOST's fields,application/x-www-form-urlencoded(a JSON body is converted,orca.web.auth.json_form).body: String: The body as it was sent.user: String: Who's logged in (a session or an API token), or empty (orca.web.auth.sign_in).source: String: How they're logged in: "ui" (a session) or "cli" (an API token).bearer: String: The API token it was sent with, or empty.session: String: The session cookie it was sent with, or empty.address: String: The address it came from (orca.web.auth.client).
__init__
def __init__(out self, url: String, path: String) query
def query(self, name: StringSpan) -> String A query parameter's value, decoded, or empty.
field
def field(self, name: StringSpan) -> String A field of the form, decoded, or empty.
param
def param(self, name: String) -> String A {name} of the route's pattern, decoded.
int
def int(self, name: String) -> Int A {name:int} of the route's pattern.