HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

  • Packagehttp2-5.3.10
  • Exports107
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceFrame.hs

Frame

6 declarations
datadata FramePayload
#
Instances3Eq, Read, Show

Checking if padding is defined in this frame type.

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

Encoding

23 declarations

Encoding an HTTP/2 frame to ByteString. This function is not efficient enough for high performace program because of the concatenation of ByteString.

Example1 expression
encodeFrame (encodeInfo id 1) (DataFrame "body")"\NUL\NUL\EOT\NUL\NUL\NUL\NUL\NUL\SOHbody"
datadata EncodeInfo
#

Auxiliary information for frame encoding.

Constructors

Instances2Read, Show

Frame type

16 declarations
newtypenewtype FrameType
#

The type for raw frame type.

Constructors

Instances5Eq, Ord, Read, Show, Ix
  • Eq FrameTypeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Ord FrameTypeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Read FrameTypeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Show FrameTypeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Ix FrameTypeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types

Priority

2 declarations
typetype Weight = Int
#

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

Stream identifier

4 declarations
valueisControl :: StreamId -> Bool
#

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

3 declarations

Flags

12 declarations

The initial value of flags. No flags are set.

Example1 expression
defaultFlags0

SettingsList

11 declarations

Payload length

2 declarations

The default payload length of HTTP/2 payload.

Example1 expression
defaultPayloadLength16384
valuemaxPayloadLength :: Int
#

The maximum payload length of HTTP/2 payload.

Example1 expression
maxPayloadLength16777215

Window

4 declarations

Checking if a window size exceeds the maximum window size.

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

Error code

17 declarations
newtypenewtype ErrorCode
#

The type for raw error code.

Constructors

Instances4Eq, Ord, Read, Show
  • Eq ErrorCodeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Ord ErrorCodeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Read ErrorCodeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types
  • Show ErrorCodeDefined in http2-5.3.10 · Network.HTTP2.Frame.Types

Predefined values

4 declarations
valueframeHeaderLength :: Int
#

The length of HTTP/2 frame header.

Example1 expression
frameHeaderLength9

Deprecated

3 declarations