hreq-core-0.1.0.0: src/Hreq/Core/Client/Response.hs
-- | This module provides the 'Response' type which is the result of an HTTP request.
--
{-# LANGUAGE DeriveFunctor #-}
module Hreq.Core.Client.Response where
import Data.ByteString.Lazy as LBS
import Network.HTTP.Types (Header, HttpVersion (..))
import Data.Text (Text)
-- * Response
data ResponseF a = Response
{ resStatusCode :: Int
, resStatusMsg :: Text
, resHeaders :: [Header]
, resBody :: a
, resHttpVersion :: HttpVersion
} deriving (Eq, Show, Functor)
type Response = ResponseF LBS.ByteString