simplexmq-6.5.0.16: SimpleXMQ message broker
Safe HaskellSafe-Inferred
LanguageHaskell2010

Simplex.Messaging.Transport.HTTP2.Client

Synopsis

Documentation

data HTTP2Client Source #

Constructors

HTTP2Client 

Fields

data HClient Source #

Constructors

HClient 

Fields

data HTTP2Response Source #

Constructors

HTTP2Response 

Fields

data HTTP2ClientConfig Source #

Constructors

HTTP2ClientConfig 

Fields

Instances

Instances details
Show HTTP2ClientConfig Source # 
Instance details

Defined in Simplex.Messaging.Transport.HTTP2.Client

Methods

showsPrec :: Int -> HTTP2ClientConfig -> ShowS

show :: HTTP2ClientConfig -> String

showList :: [HTTP2ClientConfig] -> ShowS

data HTTP2ClientError Source #

Instances

Instances details
Show HTTP2ClientError Source # 
Instance details

Defined in Simplex.Messaging.Transport.HTTP2.Client

Methods

showsPrec :: Int -> HTTP2ClientError -> ShowS

show :: HTTP2ClientError -> String

showList :: [HTTP2ClientError] -> ShowS

getHTTP2Client :: HostName -> ServiceName -> Maybe CertificateStore -> HTTP2ClientConfig -> IO () -> IO (Either HTTP2ClientError HTTP2Client) Source #

getVerifiedHTTP2Client :: Maybe SocksCredentials -> TransportHost -> ServiceName -> Maybe KeyHash -> Maybe CertificateStore -> HTTP2ClientConfig -> IO () -> IO (Either HTTP2ClientError HTTP2Client) Source #

attachHTTP2Client :: forall p. TransportPeerI p => HTTP2ClientConfig -> TransportHost -> ServiceName -> IO () -> Int -> TLS p -> IO (Either HTTP2ClientError HTTP2Client) Source #

closeHTTP2Client :: HTTP2Client -> IO () Source #

Disconnects client from the server and terminates client threads.

sendRequest :: HTTP2Client -> Request -> Maybe Int -> IO (Either HTTP2ClientError HTTP2Response) Source #

sendRequestDirect :: HTTP2Client -> Request -> Maybe Int -> IO (Either HTTP2ClientError HTTP2Response) Source #

this function should not be used until HTTP2 is thread safe, use sendRequest