webdriver-precore-0.0.0.2: src/WebDriverPreCore/HttpResponse.hs
{-# OPTIONS_HADDOCK hide #-}
module WebDriverPreCore.HttpResponse (
HttpResponse(..)
) where
import Data.Aeson (Value)
import Data.Text (Text)
import Data.Int (Int)
import GHC.Show (Show)
import Data.Eq (Eq)
import Data.Ord (Ord)
-- | 'HttpResponse' represents a WebDriver HTTP response.
--
-- An instance of 'HttpResponse' needs to be constructed in order to run the 'WebDriverPreCore.parser' suppplied in the [W3CSpec](WebDriverPreCore.Get)
data HttpResponse = MkHttpResponse
{ -- | HTTP status code.
statusCode :: Int,
-- | HTTP status message.
statusMessage :: Text,
-- | Response body in JSON format.
body :: Value
}
deriving (Show, Eq, Ord)