Safe Haskell | None |
---|---|
Language | Haskell98 |
Documentation
class (Applicative m, Monad m) => Rest m where Source #
getHeader :: String -> m (Maybe String) Source #
getParameter :: String -> m (Maybe String) Source #
getBody :: m ByteString Source #
getMethod :: m (Maybe Method) Source #
getPaths :: m [String] Source #
lookupMimeType :: String -> m (Maybe String) Source #
setHeader :: String -> String -> m () Source #
setResponseCode :: Int -> m () Source #
Rest m => Rest (MaybeT m) Source # | |
(Functor m, Applicative m, Monad m) => Rest (RestM m) Source # | |
Rest m => Rest (ExceptT e m) Source # | |
Rest m => Rest (StateT s m) Source # | |
(Monoid w, Rest m) => Rest (WriterT w m) Source # | |
Rest m => Rest (IdentityT * m) Source # | |
Rest m => Rest (ContT * r m) Source # | |
Rest m => Rest (ReaderT * r m) Source # | |
(Monoid w, Rest m) => Rest (RWST r w s m) Source # | |
failureWriter :: Rest m => Errors e -> Reason (FromMaybe Void e) -> m ByteString Source #
writeResponse :: Rest m => RunnableHandler m -> m ByteString Source #