extended-0.1.0: Extended versions of common modules
Safe HaskellSafe-Inferred
LanguageGHC2021

Servant.API.Extended.RawM

Description

copy of https://github.com/haskell-servant/servant/pull/1551 while we're waiting for this to be released. this was needed in https://github.com/wireapp/wire-server/pull/2848/, but then in the end it wasn't. we keep it here in the hope that whoever needs it next will have an easier time putting it to work.

Synopsis

Documentation

data RawM Source #

Variant of Raw that lets you access the underlying monadic context to process the request.

Instances

Instances details
RoutesToPaths RawM Source # 
Instance details

Defined in Servant.API.Extended.RawM

HasOpenApi RawM Source # 
Instance details

Defined in Servant.API.Extended.RawM

HasServer RawM context Source #

Just pass the request to the underlying application and serve its response.

Example:

type MyApi = "images" :> RawM

server :: Server MyApi
server = serveDirectory "/var/www/images"
Instance details

Defined in Servant.API.Extended.RawM

Associated Types

type ServerT RawM m Source #

Methods

route :: Proxy RawM -> Context context -> Delayed env (Server RawM) -> Router env Source #

hoistServerWithContext :: Proxy RawM -> Proxy context -> (forall x. m x -> n x) -> ServerT RawM m -> ServerT RawM n Source #

type ServerT RawM m Source # 
Instance details

Defined in Servant.API.Extended.RawM