Context that is passed to funxtions called from
the router or the filter
pub type Context {
Context(
url: List(UrlSegment),
request: Request(BitString),
user: Option(User),
)
}
Constructors
-
Context(
url: List(UrlSegment),
request: Request(BitString),
user: Option(User),
)
pub fn new(url: List(UrlSegment), request: Request(BitString)) -> Context
Creates a new instance of the Context, filling in the default parameters