WebGear.Swagger.Trait.Cookie
Contents
Description
Swagger implementation of Cookie and SetCookie traits.
Cookie
SetCookie
Swagger 2.0 does not support cookie authentication. So these implementations are no-ops.
Methods
setTrait :: forall (ts :: [Type]). SetCookie e name -> (With Response ts -> Response -> Attribute (SetCookie e name) Response -> With Response (SetCookie e name ': ts)) -> SwaggerHandler m (With Response ts, Attribute (SetCookie e name) Response) (With Response (SetCookie e name ': ts)) #
getTrait :: forall (ts :: [Type]). Prerequisite (Cookie e name val) ts Request => Cookie e name val -> SwaggerHandler m (With Request ts) (Either (Absence (Cookie e name val) Request) (Attribute (Cookie e name val) Request)) #