1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
{-# LANGUAGE RankNTypes #-}
module Network.HTTP2.Client.Types where
import Network.HTTP2.H2
----------------------------------------------------------------
-- | Client type.
type Client a = (forall b. Request -> (Response -> IO b) -> IO b) -> Aux -> IO a
-- | Request from client.
newtype Request = Request OutObj deriving (Show)
-- | Response from server.
newtype Response = Response InpObj deriving (Show)
-- | Additional information.
data Aux = Aux
{ auxPossibleClientStreams :: IO Int
-- ^ How many streams can be created without blocking.
}
|