Safe Haskell | None |
---|---|
Language | Haskell2010 |
WebGear.Core.Traits
Description
All the traits supported by WebGear.
Synopsis
- module WebGear.Core.Trait.Auth.Basic
- module WebGear.Core.Trait.Auth.JWT
- module WebGear.Core.Trait.Auth.Common
- module WebGear.Core.Trait.Body
- module WebGear.Core.Trait.Cookie
- module WebGear.Core.Trait.Header
- module WebGear.Core.Trait.Method
- module WebGear.Core.Trait.Path
- module WebGear.Core.Trait.QueryParam
- module WebGear.Core.Trait.Status
- type StdHandler (h :: Type -> Type -> Type) (m :: Type -> Type) = (Handler h m, Gets h '[Method, Path, PathEnd], Sets h '[Status, Body PlainText String, Body PlainText Text, Body PlainText Text, RequiredResponseHeader "Content-Type" Text])
Documentation
module WebGear.Core.Trait.Auth.JWT
module WebGear.Core.Trait.Body
module WebGear.Core.Trait.Cookie
module WebGear.Core.Trait.Header
module WebGear.Core.Trait.Method
module WebGear.Core.Trait.Path
module WebGear.Core.Trait.Status
type StdHandler (h :: Type -> Type -> Type) (m :: Type -> Type) = (Handler h m, Gets h '[Method, Path, PathEnd], Sets h '[Status, Body PlainText String, Body PlainText Text, Body PlainText Text, RequiredResponseHeader "Content-Type" Text]) Source #
Constraints that include a set of common traits for handlers.
The type variables are:
h
- The handler arrowm
- The underlying monad of the handler