| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.HTTP3.Server
Description
A server library for HTTP/3.
Synopsis
- run :: Connection -> Config -> Server -> IO ()
- data Config = Config {}
- defaultConfig :: Config
- allocSimpleConfig :: IO Config
- freeSimpleConfig :: Config -> IO ()
- defaultQEncoderConfig :: QEncoderConfig
- ecMaxTableCapacity :: QEncoderConfig -> Size
- ecHeaderBlockBufferSize :: QEncoderConfig -> Size
- ecInstructionBufferSize :: QEncoderConfig -> Size
- defaultQDecoderConfig :: QDecoderConfig
- dcMaxTableCapacity :: QDecoderConfig -> Size
- dcHuffmanBufferSize :: QDecoderConfig -> Size
- data Hooks = Hooks {
- onControlFrameCreated :: [H3Frame] -> [H3Frame]
- onHeadersFrameCreated :: [H3Frame] -> [H3Frame]
- onControlStreamCreated :: Stream -> IO ()
- onEncoderStreamCreated :: Stream -> IO ()
- onDecoderStreamCreated :: Stream -> IO ()
- defaultHooks :: Hooks
- module Network.HTTP.Semantics.Server
- runIO :: Connection -> Config -> (ServerIO Stream -> IO (IO ())) -> IO ()
- data ServerIO a = ServerIO {
- sioMySockAddr :: SockAddr
- sioPeerSockAddr :: SockAddr
- sioReadRequest :: IO (a, Request)
- sioWriteResponse :: a -> Response -> IO ()
Runner
Common configration
Configuration for HTTP/3 or HQ.
Constructors
| Config | |
allocSimpleConfig :: IO Config Source #
Allocating a simple configuration with a handle-based position reader and a locally allocated timeout manager.
freeSimpleConfig :: Config -> IO () Source #
Freeing a simple configration.
defaultQEncoderConfig :: QEncoderConfig Source #
Default configuration for QPACK encoder.
>>>defaultQEncoderConfigQEncoderConfig {ecMaxTableCapacity = 4096, ecHeaderBlockBufferSize = 4096, ecInstructionBufferSize = 4096}
defaultQDecoderConfig :: QDecoderConfig Source #
Default configuration for QPACK decoder.
>>>defaultQDecoderConfigQDecoderConfig {dcMaxTableCapacity = 4096, dcHuffmanBufferSize = 2048, dcBlockedSterams = 100, dcMaxFieldSectionSize = 32768}
Hooks mainly for error testing.
Constructors
| Hooks | |
Fields
| |
defaultHooks :: Hooks Source #
Default hooks.
HTTP semantics
Internal
Constructors
| ServerIO | |
Fields
| |