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

21 lines
366 B
Haskell
Raw Normal View History

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)
} deriving (Functor, Foldable, Traversable)