servant-client-0.2.1: automatical derivation of querying functions for servant webservices

Safe HaskellNone
LanguageHaskell2010

Servant.Common.Req

Contents

Synopsis

Documentation

data Req Source

Constructors

Req 

appendToQueryString Source

Arguments

:: Text

param name

-> Maybe Text

param value

-> Req 
-> Req 

addHeader :: ToText a => String -> a -> Req -> Req Source

performing requests

decodeLenient :: FromJSON a => ByteString -> Either String a Source

Like decode but allows all JSON values instead of just objects and arrays.