http3-0.1.1: HTTP/3 library
Safe HaskellNone
LanguageHaskell2010

Network.HTTP3.Client

Description

A client library for HTTP/3.

Synopsis

Runner

run :: Connection -> ClientConfig -> Config -> Client a -> IO a Source #

Running an HTTP/3 client.

Client configration

data ClientConfig Source #

Configuration for HTTP/3 or HQ client. For HQ, authority is not used and an server's IP address is used in Request.

Common configuration

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