howdy/context

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

Types

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

Constructors

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

Functions

pub fn is_authenticated(context: Context(a)) -> Bool
pub fn new(url: List(UrlSegment), request: Request(BitString), config: a) -> Context(
  a,
)

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