rest-core-0.39: Rest API library.
Rest.Driver.RestM
data RestM m a Source #
Instances
Methods
lift :: Monad m => m a -> RestM m a #
(>>=) :: RestM m a -> (a -> RestM m b) -> RestM m b #
(>>) :: RestM m a -> RestM m b -> RestM m b #
return :: a -> RestM m a #
fail :: String -> RestM m a #
fmap :: (a -> b) -> RestM m a -> RestM m b #
(<$) :: a -> RestM m b -> RestM m a #
pure :: a -> RestM m a #
(<*>) :: RestM m (a -> b) -> RestM m a -> RestM m b #
(*>) :: RestM m a -> RestM m b -> RestM m b #
(<*) :: RestM m a -> RestM m b -> RestM m a #
getHeader :: String -> RestM m (Maybe String) Source #
getParameter :: String -> RestM m (Maybe String) Source #
getBody :: RestM m ByteString Source #
getMethod :: RestM m (Maybe Method) Source #
getPaths :: RestM m [String] Source #
lookupMimeType :: String -> RestM m (Maybe String) Source #
setHeader :: String -> String -> RestM m () Source #
setResponseCode :: Int -> RestM m () Source #
runRestM :: RestInput -> RestM m a -> m (a, RestOutput) Source #
runRestM_ :: Functor m => RestInput -> RestM m a -> m a Source #
data RestInput Source #
Constructors
Fields
emptyInput :: RestInput Source #
data RestOutput Source #
showsPrec :: Int -> RestOutput -> ShowS #
show :: RestOutput -> String #
showList :: [RestOutput] -> ShowS #
mempty :: RestOutput #
mappend :: RestOutput -> RestOutput -> RestOutput #
mconcat :: [RestOutput] -> RestOutput #