rest-core-0.33.1: Rest API library.

Safe HaskellNone

Rest.Driver.Perform

Documentation

class (Applicative m, Monad m) => Rest m whereSource

Methods

getHeader :: String -> m (Maybe String)Source

getParameter :: String -> m (Maybe String)Source

getBody :: m ByteStringSource

getMethod :: m MethodSource

getPaths :: m [String]Source

lookupMimeType :: String -> m (Maybe String)Source

setHeader :: String -> String -> m ()Source

setResponseCode :: Int -> m ()Source

Instances

Rest m => Rest (IdentityT m) 
Rest m => Rest (MaybeT m) 
(Functor m, Applicative m, Monad m) => Rest (RestM m) 
Rest m => Rest (ContT r m) 
Rest m => Rest (ReaderT r m) 
Rest m => Rest (StateT s m) 
(Error e, Rest m) => Rest (ErrorT e m) 
(Monoid w, Rest m) => Rest (WriterT w m) 
(Monoid w, Rest m) => Rest (RWST r w s m) 

fetchInputs :: Rest m => Dict h p j o e -> ErrorT (Reason e) m (Env h p j)Source

parser :: Monad m => Format -> Inputs j -> ByteString -> ErrorT DataError m jSource

contentType :: Rest m => Format -> m ()Source

validator :: forall v m e. Rest m => Outputs v -> ErrorT (Reason e) m ()Source

outputWriter :: forall v m e. Rest m => Outputs v -> v -> ErrorT (Reason e) m ByteStringSource