Safe Haskell | None |
---|
Documentation
class (Applicative m, Monad m) => Rest m whereSource
getHeader :: String -> m (Maybe String)Source
getParameter :: String -> m (Maybe String)Source
getBody :: m ByteStringSource
lookupMimeType :: String -> m (Maybe String)Source
setHeader :: String -> String -> m ()Source
setResponseCode :: Int -> m ()Source
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) |
writeResponse :: Rest m => RunnableHandler m -> m ByteStringSource
parseContentType :: Rest m => m (Maybe Format)Source
failureWriter :: Rest m => Errors e -> Reason e -> m ByteStringSource
contentType :: Rest m => Format -> m ()Source
outputWriter :: forall v m e. Rest m => Outputs v -> v -> ErrorT (Reason e) m ByteStringSource
outputMultipart :: Rest m => [BodyPart] -> m ByteStringSource