Modulehttp2-5.4.8Haskell2010
Network.HTTP2.Server.Internal
- 7 types
- 1 value
- Packagehttp2-5.4.8
- Exports8
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceInternal.hs
HTTP/2 configuration.
Constructors
ConfigconfWriteBuffer :: BufferThis is used only by frameSender. This MUST be freed after frameSender is terminated.
confBufferSize :: BufferSizeThe size of the write buffer. We assume that the read buffer is the same size. So, this value is announced via SETTINGS_MAX_FRAME_SIZE to the peer.
confSendAll :: ByteString -> IO ()confReadN :: Int -> IO ByteStringconfPositionReadMaker :: PositionReadMakerconfTimeoutManager :: ManagerconfMySockAddr :: SockAddrThis is copied into Aux, if exist, on server.
confPeerSockAddr :: SockAddrThis is copied into Aux, if exist, on server.
confReadNTimeout :: BoolconfOnInformational :: StreamId -> TokenHeaderTable -> IO ()Client only: called when a 1xx informational response (e.g. 103 Early Hints) is received on the given stream, ahead of the final response. No-op by default.
Server configuration
Constructors
ServerConfignumberOfWorkers :: IntDeprecated field.
connectionWindowSize :: WindowSizeThe window size of incoming streams
settings :: SettingsSettings
Instances2Eq, Show
Eq ServerConfigDefined in http2-5.4.8 · Network.HTTP2.Server.RunShow ServerConfigDefined in http2-5.4.8 · Network.HTTP2.Server.Run
Additional information.
Constructors
AuxauxTimeHandle :: HandleTime handle for the worker processing this request and response.
auxMySockAddr :: SockAddrLocal socket address copied from
Config.auxPeerSockAddr :: SockAddrRemove socket address copied from
Config.auxSendInformational :: Status -> ResponseHeaders -> IO ()Send an informational (1xx) response, e.g. 103 Early Hints, on this request's stream before the final response. May be called multiple times. A no-op in
defaultAux.
Low level
3 declarationsConstructors
ServerIOsioMySockAddr :: SockAddrsioPeerSockAddr :: SockAddrsioReadRequest :: IO (a, Request)sioWriteResponse :: a -> Response -> IO ()Response MUST be created with responseBuilder. Others are not supported.
sioDone :: IO ()
Launching a receiver and a sender without workers.
Any frames can be sent with sioWriteBytes.