Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Http2FrameConnection = Http2FrameConnection {}
- newHttp2FrameConnection :: HostName -> PortNumber -> Maybe ClientParams -> IO Http2FrameConnection
- data Http2ServerStream = Http2ServerStream {}
- data Http2FrameClientStream = Http2FrameClientStream {
- _sendFrames :: IO [(FrameFlags -> FrameFlags, FramePayload)] -> IO ()
- _getStreamId :: StreamId
- makeFrameClientStream :: Http2FrameConnection -> StreamId -> Http2FrameClientStream
- sendOne :: Http2FrameClientStream -> (FrameFlags -> FrameFlags) -> FramePayload -> IO ()
- sendBackToBack :: Http2FrameClientStream -> [(FrameFlags -> FrameFlags, FramePayload)] -> IO ()
- next :: Http2FrameConnection -> IO (FrameHeader, Either HTTP2Error FramePayload)
- closeConnection :: Http2FrameConnection -> IO ()
Documentation
data Http2FrameConnection Source #
Http2FrameConnection | |
|
newHttp2FrameConnection :: HostName -> PortNumber -> Maybe ClientParams -> IO Http2FrameConnection Source #
Creates a new Http2FrameConnection
to a given host for a frame-to-frame communication.
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 -> 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.