http2-client-0.3.0.0: A native HTTP2 client library.

Safe HaskellNone
LanguageHaskell2010

Network.HTTP2.Client.FrameConnection

Contents

Synopsis

Documentation

data Http2FrameConnection Source #

Constructors

Http2FrameConnection 

Fields

newHttp2FrameConnection :: HostName -> PortNumber -> ClientParams -> IO 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 -> IO () Source #

Sends a frame to the server.

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

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

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

Waits for the next frame from the server.

closeConnection :: Http2FrameConnection -> IO () Source #

Closes the Http2FrameConnection abruptly.