http2-client-0.10.0.0: A native HTTP2 client library.
Safe HaskellNone
LanguageHaskell2010

Network.HTTP2.Client.FrameConnection

Synopsis

Documentation

data Http2FrameConnection Source #

Constructors

Http2FrameConnection 

Fields

newHttp2FrameConnection :: HostName -> PortNumber -> Maybe ClientParams -> ClientIO Http2FrameConnection Source #

Creates a new Http2FrameConnection to a given host for a frame-to-frame communication.

Interact at the Frame level.

data Http2FrameClientStream Source #

Constructors

Http2FrameClientStream 

Fields

sendOne :: Http2FrameClientStream -> (FrameFlags -> FrameFlags) -> FramePayload -> ClientIO () Source #

Sends a frame to the server.

sendBackToBack :: Http2FrameClientStream -> [(FrameFlags -> FrameFlags, FramePayload)] -> ClientIO () Source #

Sends multiple back-to-back frames to the server.

next :: Http2FrameConnection -> ClientIO (FrameHeader, Either HTTP2Error FramePayload) Source #

Waits for the next frame from the server.

closeConnection :: Http2FrameConnection -> ClientIO () Source #

Closes the Http2FrameConnection abruptly.