Copyright | (c) 2016 Owain Lewis |
---|---|
License | BSD-style |
Maintainer | owain@owainlewis.com |
Stability | experimental |
Portability | GHC |
Safe Haskell | Safe |
Language | Haskell2010 |
Network.HTTP.Dispatch.Types
Description
HTTP Types
Documentation
type Header = (ByteString, ByteString) Source #
type Body = ByteString Source #
data HTTPRequestMethod Source #
Instances
data HTTPRequest Source #
Constructors
HTTPRequest | |
Fields
|
Instances
data HTTPResponse Source #
Constructors
HTTPResponse | |
Fields
|
Instances
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 #