http3-0.1.1: HTTP/3 library
Safe HaskellNone
LanguageHaskell2010

Network.HTTP3.Server

Description

A server library for HTTP/3.

Synopsis

Runner

run :: Connection -> Config -> Server -> IO () Source #

Running an HTTP/3 server.

Common configration

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.

>>> defaultQEncoderConfig
QEncoderConfig {ecMaxTableCapacity = 4096, ecHeaderBlockBufferSize = 4096, ecInstructionBufferSize = 4096}

defaultQDecoderConfig :: QDecoderConfig Source #

Default configuration for QPACK decoder.

>>> defaultQDecoderConfig
QDecoderConfig {dcMaxTableCapacity = 4096, dcHuffmanBufferSize = 2048, dcBlockedSterams = 100, dcMaxFieldSectionSize = 32768}

data Hooks Source #

Hooks mainly for error testing.

defaultHooks :: Hooks Source #

Default hooks.

HTTP semantics

Internal

runIO :: Connection -> Config -> (ServerIO Stream -> IO (IO ())) -> IO () Source #

data ServerIO a #

Constructors

ServerIO 

Fields