http2-5.4.12: HTTP/2 library
Safe HaskellNone
LanguageHaskell2010

Network.HTTP2.Client.Internal

Contents

Synopsis

Documentation

newtype Request #

Request from client.

Constructors

Request OutObj 

Instances

Instances details
Show Request 
Instance details

Defined in Network.HTTP.Semantics.Client.Internal

newtype Response #

Response from server.

Constructors

Response InpObj 

Instances

Instances details
Show Response 
Instance details

Defined in Network.HTTP.Semantics.Client.Internal

data Config Source #

HTTP/2 configuration.

Constructors

Config 

Fields

data ClientConfig Source #

Client configuration

Constructors

ClientConfig 

Fields

Instances

Instances details
Show ClientConfig Source # 
Instance details

Defined in Network.HTTP2.Client.Run

Eq ClientConfig Source # 
Instance details

Defined in Network.HTTP2.Client.Run

data Settings Source #

Constructors

Settings 

Fields

  • headerTableSize :: Int

    SETTINGS_HEADER_TABLE_SIZE

  • enablePush :: Bool

    SETTINGS_ENABLE_PUSH

  • maxConcurrentStreams :: Maybe Int

    SETTINGS_MAX_CONCURRENT_STREAMS

  • initialWindowSize :: WindowSize

    SETTINGS_INITIAL_WINDOW_SIZE

  • maxFrameSize :: Int

    SETTINGS_MAX_FRAME_SIZE

  • maxHeaderListSize :: Maybe Int

    SETTINGS_MAX_HEADER_LIST_SIZE. Our own value is also enforced: a field block whose decoded size (RFC 9113 section 6.5.2: the length of each field's name plus its value plus 32) exceeds it resets the stream. With Nothing, nothing is advertised but a limit of 64 KiB is enforced all the same (CVE-2026-49975).

  • pingRateLimit :: Int

    Maximum number of pings allowed per second (CVE-2019-9512)

  • emptyFrameRateLimit :: Int

    Maximum number of empty data frames allowed per second (CVE-2019-9518)

  • settingsRateLimit :: Int

    Maximum number of settings frames allowed per second (CVE-2019-9515)

  • rstRateLimit :: Int

    Maximum number of streams reset per second, whether by the peer's RST_STREAM (CVE-2023-44487) or by ours in answer to a stream error the peer caused (CVE-2025-8671)

Instances

Instances details
Show Settings Source # 
Instance details

Defined in Network.HTTP2.H2.Settings

Eq Settings Source # 
Instance details

Defined in Network.HTTP2.H2.Settings

data Aux #

Additional information.

Constructors

Aux 

Fields

Low level

data Stream Source #

Instances

Instances details
Show Stream Source # 
Instance details

Defined in Network.HTTP2.H2.Types

runIO :: ClientConfig -> Config -> (ClientIO -> IO (IO a)) -> IO a Source #

Launching a receiver and a sender.