wire-api-0.1.0
Safe HaskellSafe-Inferred
LanguageGHC2021

Wire.API.Routes.Bearer

Documentation

newtype Bearer a Source #

Constructors

Bearer 

Fields

Instances

Instances details
RoutesToPaths api => RoutesToPaths (Bearer a :> api :: Type) Source # 
Instance details

Defined in Wire.API.Routes.Bearer

HasOpenApi api => HasOpenApi (Bearer a :> api :: Type) Source # 
Instance details

Defined in Wire.API.Routes.Bearer

Methods

toOpenApi :: Proxy (Bearer a :> api) -> OpenApi Source #

(HasContextEntry (ctx .++ DefaultErrorFormatters) ErrorFormatters, FromHttpApiData a, HasServer api ctx) => HasServer (Bearer a :> api :: Type) ctx Source # 
Instance details

Defined in Wire.API.Routes.Bearer

Associated Types

type ServerT (Bearer a :> api) m Source #

Methods

route :: Proxy (Bearer a :> api) -> Context ctx -> Delayed env (Server (Bearer a :> api)) -> Router env Source #

hoistServerWithContext :: Proxy (Bearer a :> api) -> Proxy ctx -> (forall x. m x -> n x) -> ServerT (Bearer a :> api) m -> ServerT (Bearer a :> api) n Source #

FromHttpApiData a => FromHttpApiData (Bearer a) Source # 
Instance details

Defined in Wire.API.Routes.Bearer

type SpecialiseToVersion v (Bearer a :> api) Source # 
Instance details

Defined in Wire.API.Routes.Bearer

type ServerT (Bearer a :> api :: Type) m Source # 
Instance details

Defined in Wire.API.Routes.Bearer

type ServerT (Bearer a :> api :: Type) m = Maybe (Either Text a) -> ServerT api m

type BearerHeader a = Header' '[Lenient] "Authorization" (Bearer a) Source #

type BearerQueryParam = QueryParam' [Lenient, Description "Access token"] "access_token" Source #