Copyright | (c) 2016 Owain Lewis |
---|---|
License | BSD-style |
Maintainer | owain@owainlewis.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell2010 |
HTTP Types
Documentation
type Header = (ByteString, ByteString) Source #
type Body = ByteString Source #
data HTTPRequestMethod Source #
data HTTPRequest Source #
HTTPRequest | |
|
data HTTPResponse Source #
HTTPResponse | |
|
withHeader :: HTTPRequest -> Header -> HTTPRequest Source #
withHeaders :: HTTPRequest -> [Header] -> HTTPRequest Source #
withBody :: HTTPRequest -> ByteString -> HTTPRequest Source #
withMethod :: HTTPRequest -> HTTPRequestMethod -> HTTPRequest Source #
dropHeaderWithKey :: HTTPRequest -> ByteString -> HTTPRequest Source #