howdy/context

Context that is passed to funxtions called from the router or the filter

Types

pub type Context {
  Context(
    url: List(UrlSegment),
    request: Request(BitString),
    user: Option(User),
  )
}

Constructors

  • Context(
      url: List(UrlSegment),
      request: Request(BitString),
      user: Option(User),
    )

Functions

pub fn new(url: List(UrlSegment), request: Request(BitString)) -> Context

Creates a new instance of the Context, filling in the default parameters