Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data Http2FrameConnection = Http2FrameConnection {}
- newHttp2FrameConnection :: HostName -> PortNumber -> Maybe ClientParams -> ClientIO Http2FrameConnection
- frameHttp2RawConnection :: RawHttp2Connection -> ClientIO Http2FrameConnection
- data Http2ServerStream = Http2ServerStream {}
- data Http2FrameClientStream = Http2FrameClientStream {
- _sendFrames :: ClientIO [(FrameFlags -> FrameFlags, FramePayload)] -> ClientIO ()
- _getStreamId :: StreamId
- makeFrameClientStream :: Http2FrameConnection -> StreamId -> Http2FrameClientStream
- sendOne :: Http2FrameClientStream -> (FrameFlags -> FrameFlags) -> FramePayload -> ClientIO ()
- sendBackToBack :: Http2FrameClientStream -> [(FrameFlags -> FrameFlags, FramePayload)] -> ClientIO ()
- next :: Http2FrameConnection -> ClientIO (FrameHeader, Either FrameDecodeError FramePayload)
- closeConnection :: Http2FrameConnection -> ClientIO ()
Documentation
data Http2FrameConnection Source #
Http2FrameConnection | |
|
newHttp2FrameConnection :: HostName -> PortNumber -> Maybe ClientParams -> ClientIO Http2FrameConnection Source #
Creates a new Http2FrameConnection
to a given host for a frame-to-frame communication.
frameHttp2RawConnection :: RawHttp2Connection -> ClientIO Http2FrameConnection Source #
Adds framing around a RawHttp2Connection
.
Interact at the Frame level.
data Http2ServerStream Source #
data Http2FrameClientStream Source #
Http2FrameClientStream | |
|
makeFrameClientStream :: Http2FrameConnection -> StreamId -> Http2FrameClientStream Source #
Creates a client stream.
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 FrameDecodeError FramePayload) Source #
Waits for the next frame from the server.
closeConnection :: Http2FrameConnection -> ClientIO () Source #
Closes the Http2FrameConnection abruptly.