HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Modulehttp2-5.4.8Haskell2010

Network.HTTP2.Frame

Contents
  1. Frame
  2. Encoding
  3. Frame type
  4. Priority
  5. Stream identifier
  6. Stream identifier related
  7. Flags
  8. SettingsList
  9. Payload length
  10. Window
  11. Error code
  12. Predefined values
  13. Deprecated
Synopsis
  • Packagehttp2-5.4.8
  • Exports107
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFrame.hs

Frame

datadata FramePayload
Instances3Eq, Read, Show

Checking if padding is defined in this frame type.

Example2 expressions
isPaddingDefined $ DataFrame ""TrueisPaddingDefined $ PingFrame ""False

Encoding

datadata EncodeInfo

Auxiliary information for frame encoding.

Constructors

Instances2Read, Show

Frame type

Priority

typetype Weight = Int

The type for weight in priority. Its values are from 1 to 256. Deprecated in RFC 9113.

Stream identifier

Checking if the stream identifier for control.

Example2 expressions
isControl 0TrueisControl 1False

Checking if the stream identifier is from a client.

Example2 expressions
isClientInitiated 0FalseisClientInitiated 1True

Checking if the stream identifier is from a server.

Example2 expressions
isServerInitiated 0FalseisServerInitiated 2True

Stream identifier related

Flags

SettingsList

Payload length

The maximum payload length of HTTP/2 payload.

Example1 expression
maxPayloadLength16777215

Window

Checking if a window size exceeds the maximum window size.

Example3 expressions
isWindowOverflow 10FalseisWindowOverflow maxWindowSizeFalseisWindowOverflow (maxWindowSize + 1)True

Error code

Predefined values

Deprecated