Copyright | (c) 2013-2016 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
- head' :: ToRequest a => Service -> a -> Request a
- delete :: ToRequest a => Service -> a -> Request a
- get :: ToRequest a => Service -> a -> Request a
- post :: ToRequest a => Service -> a -> Request a
- put :: ToRequest a => Service -> a -> Request a
- patchJSON :: (ToRequest a, ToJSON a) => Service -> a -> Request a
- postXML :: (ToRequest a, ToElement a) => Service -> a -> Request a
- postJSON :: (ToRequest a, ToJSON a) => Service -> a -> Request a
- postQuery :: ToRequest a => Service -> a -> Request a
- postBody :: (ToRequest a, ToBody a) => Service -> a -> Request a
- putXML :: (ToRequest a, ToElement a) => Service -> a -> Request a
- putJSON :: (ToRequest a, ToJSON a) => Service -> a -> Request a
- putBody :: (ToRequest a, ToBody a) => Service -> a -> Request a
- defaultRequest :: ToRequest a => Service -> a -> Request a
- contentMD5Header :: Request a -> Request a
- expectHeader :: Request a -> Request a
- requestHeaders :: Lens' Request RequestHeaders
- queryString :: Lens' Request ByteString
- requestURL :: ClientRequest -> ByteString
Requests
Empty body
Specialised body
Constructors
defaultRequest :: ToRequest a => Service -> a -> Request a Source #
Operation Plugins
contentMD5Header :: Request a -> Request a Source #
expectHeader :: Request a -> Request a Source #
Lenses
requestURL :: ClientRequest -> ByteString Source #