graphql-engine/server/src-lib/Hasura/Server/Context.hs

21 lines
324 B
Haskell

module Hasura.Server.Context
( HttpResponse(..)
, Header (..)
, Headers
)
where
import Hasura.Prelude
newtype Header
= Header { unHeader :: (Text, Text) }
deriving (Show, Eq)
type Headers = [Header]
data HttpResponse a
= HttpResponse
{ _hrBody :: !a
, _hrHeaders :: !(Maybe Headers)
}