rest-core-0.33.1: Rest API library.

Safe HaskellNone

Rest.Driver.RestM

Documentation

data RestM m a Source

Instances

MonadTrans RestM 
Monad m => Monad (RestM m) 
Functor m => Functor (RestM m) 
Applicative m => Applicative (RestM m) 
(Functor m, Applicative m, Monad m) => Rest (RestM m) 

runRestM_ :: Functor m => RestInput -> RestM m a -> m aSource

data RestInput Source

Constructors

RestInput 

Fields

headers :: HashMap String String
 
parameters :: HashMap String String
 
body :: ByteString
 
method :: Method
 
paths :: [String]
 
mimeTypes :: HashMap String String
 

data RestOutput Source

Constructors

RestOutput 

Fields

headersSet :: HashMap String String
 
responseCode :: Maybe Int
 

Instances