graphql-engine-1.0.0: GraphQL API over Postgres
Safe HaskellNone
LanguageHaskell2010

Hasura.HTTP

Documentation

hdrsToText :: [Header] -> [(Text, Text)] Source #

wreqOptions :: Manager -> [Header] -> Options Source #

addDefaultHeaders :: [Header] -> [Header] Source #

defaultHeaders :: [Header] Source #

newtype HttpException Source #

Constructors

HttpException 

Fields

Instances

Instances details
Show HttpException Source # 
Instance details

Defined in Hasura.HTTP

ToJSON HttpException Source # 
Instance details

Defined in Hasura.HTTP

Methods

toJSON :: HttpException -> Value

toEncoding :: HttpException -> Encoding

toJSONList :: [HttpException] -> Value

toEncodingList :: [HttpException] -> Encoding

encodeHTTPRequestJSON :: Request -> Value Source #

data HttpResponse a Source #

Constructors

HttpResponse 

Fields

Instances

Instances details
Functor HttpResponse Source # 
Instance details

Defined in Hasura.HTTP

Methods

fmap :: (a -> b) -> HttpResponse a -> HttpResponse b #

(<$) :: a -> HttpResponse b -> HttpResponse a #

Foldable HttpResponse Source # 
Instance details

Defined in Hasura.HTTP

Methods

fold :: Monoid m => HttpResponse m -> m #

foldMap :: Monoid m => (a -> m) -> HttpResponse a -> m #

foldMap' :: Monoid m => (a -> m) -> HttpResponse a -> m #

foldr :: (a -> b -> b) -> b -> HttpResponse a -> b #

foldr' :: (a -> b -> b) -> b -> HttpResponse a -> b #

foldl :: (b -> a -> b) -> b -> HttpResponse a -> b #

foldl' :: (b -> a -> b) -> b -> HttpResponse a -> b #

foldr1 :: (a -> a -> a) -> HttpResponse a -> a #

foldl1 :: (a -> a -> a) -> HttpResponse a -> a #

toList :: HttpResponse a -> [a] #

null :: HttpResponse a -> Bool #

length :: HttpResponse a -> Int #

elem :: Eq a => a -> HttpResponse a -> Bool #

maximum :: Ord a => HttpResponse a -> a #

minimum :: Ord a => HttpResponse a -> a #

sum :: Num a => HttpResponse a -> a #

product :: Num a => HttpResponse a -> a #

Traversable HttpResponse Source # 
Instance details

Defined in Hasura.HTTP

Methods

traverse :: Applicative f => (a -> f b) -> HttpResponse a -> f (HttpResponse b) #

sequenceA :: Applicative f => HttpResponse (f a) -> f (HttpResponse a) #

mapM :: Monad m => (a -> m b) -> HttpResponse a -> m (HttpResponse b) #

sequence :: Monad m => HttpResponse (m a) -> m (HttpResponse a) #