-- 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.0.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 data Response get :: String -> IO Response post :: (String, Maybe ByteString) -> IO Response put :: (String, Maybe ByteString) -> IO Response requestBody :: Request a -> Maybe a requestHeaders :: Request a -> Headers requestMethod :: Request a -> Method requestUrl :: Request a -> String responseBody :: Response -> ByteString responseHeaders :: Response -> Headers responseStatus :: Response -> Int 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