Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | provisional |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- receiveNull :: (MonadResource m, MonadThrow m) => Rs a -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveEmpty :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> () -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveXMLWrapper :: (MonadResource m, MonadThrow m) => Text -> (Int -> ResponseHeaders -> [Node] -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveXML :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> [Node] -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveJSON :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> Object -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveBytes :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> ByteString -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- receiveBody :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> RsBody -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- deserialise :: (MonadResource m, MonadThrow m) => (LazyByteString -> Either String b) -> (Int -> ResponseHeaders -> b -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a)
- stream :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> ResponseBody -> m (Either String (Rs a))) -> Service -> Proxy a -> ClientResponse -> m (Response a)
- sinkLBS :: MonadResource m => ResponseBody -> m LazyByteString
Documentation
receiveNull :: (MonadResource m, MonadThrow m) => Rs a -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveEmpty :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> () -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveXMLWrapper :: (MonadResource m, MonadThrow m) => Text -> (Int -> ResponseHeaders -> [Node] -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveXML :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> [Node] -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveJSON :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> Object -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveBytes :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> ByteString -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
receiveBody :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> RsBody -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
deserialise :: (MonadResource m, MonadThrow m) => (LazyByteString -> Either String b) -> (Int -> ResponseHeaders -> b -> Either String (Rs a)) -> Logger -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
Deserialise an entire response body, such as an XML or JSON payload.
stream :: (MonadResource m, MonadThrow m) => (Int -> ResponseHeaders -> ResponseBody -> m (Either String (Rs a))) -> Service -> Proxy a -> ClientResponse -> m (Response a) Source #
Stream a raw response body, such as an S3 object payload.
sinkLBS :: MonadResource m => ResponseBody -> m LazyByteString Source #