-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | "HTTP client for haskell, inpired by requests and http-dispatch." @package request @version 0.2.1.0 module Network.HTTP.Request type Header = (ByteString, ByteString) type Headers = [Header] data Method DELETE :: Method GET :: Method HEAD :: Method OPTIONS :: Method PATCH :: Method POST :: Method PUT :: Method TRACE :: Method Method :: String -> Method data (IsString a) => Request a Request :: Method -> String -> Headers -> Maybe a -> Request a [requestMethod] :: Request a -> Method [requestUrl] :: Request a -> String [requestHeaders] :: Request a -> Headers [requestBody] :: Request a -> Maybe a data Response Response :: Int -> Headers -> ByteString -> Response [responseStatus] :: Response -> Int [responseHeaders] :: Response -> Headers [responseBody] :: Response -> ByteString get :: String -> IO Response post :: (String, Maybe ByteString) -> IO Response put :: (String, Maybe ByteString) -> IO Response send :: IsString a => Request a -> IO Response instance (Data.String.IsString a, GHC.Show.Show a) => GHC.Show.Show (Network.HTTP.Request.Request a) instance GHC.Show.Show Network.HTTP.Request.Response instance GHC.Show.Show Network.HTTP.Request.Method