1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
--
-- HTTP types for use with io-streams and pipes
--
-- Copyright © 2012-2014 Operational Dynamics Consulting, Pty Ltd
--
-- The code in this file, and the program it is a part of, is
-- made available to you by its authors as open source software:
-- you can redistribute it and/or modify it under the terms of
-- the BSD licence.
--
{-# LANGUAGE OverloadedStrings #-}
{-# OPTIONS_HADDOCK not-home #-}
--
-- | Basic types used in HTTP communications. This modules is re-exported by
-- both "Network.Http.Client" and "Pipes.Http.Client", so if you're using
-- either of those you don't need to explicitly import this module.
--
module Network.Http.Types (
-- * Requests
Hostname,
Port,
Request,
EntityBody(..),
ExpectMode(..),
RequestBuilder,
buildRequest,
buildRequest1,
http,
setHostname,
setAccept,
setAccept',
setAuthorizationBasic,
ContentType,
setContentType,
setContentLength,
setExpectContinue,
setTransferEncoding,
FieldName,
Boundary,
unBoundary,
emptyBoundary,
randomBoundary,
packBoundary,
setContentMultipart,
setHeader,
-- * Responses
Response,
StatusCode,
TransferEncoding(..),
ContentEncoding(..),
getStatusCode,
getStatusMessage,
getHeader,
Method(..),
-- * Headers
Headers,
emptyHeaders,
updateHeader,
removeHeader,
buildHeaders,
lookupHeader,
retrieveHeaders,
HttpType (getHeaders),
-- * Exceptions
HttpParseException(..)
) where
import Network.Http.Internal
import Network.Http.RequestBuilder
|