Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data ApplicationProtocolError where
- pattern H3NoError :: ApplicationProtocolError
- pattern H3GeneralProtocolError :: ApplicationProtocolError
- pattern H3InternalError :: ApplicationProtocolError
- pattern H3StreamCreationError :: ApplicationProtocolError
- pattern H3ClosedCriticalStream :: ApplicationProtocolError
- pattern H3FrameUnexpected :: ApplicationProtocolError
- pattern H3FrameError :: ApplicationProtocolError
- pattern H3ExcessiveLoad :: ApplicationProtocolError
- pattern H3IdError :: ApplicationProtocolError
- pattern H3SettingsError :: ApplicationProtocolError
- pattern H3MissingSettings :: ApplicationProtocolError
- pattern H3RequestRejected :: ApplicationProtocolError
- pattern H3RequestCancelled :: ApplicationProtocolError
- pattern H3RequestIncomplete :: ApplicationProtocolError
- pattern H3MessageError :: ApplicationProtocolError
- pattern H3ConnectError :: ApplicationProtocolError
- pattern H3VersionFallback :: ApplicationProtocolError
- data H3Frame = H3Frame H3FrameType ByteString
- data H3FrameType
- fromH3FrameType :: H3FrameType -> Int64
- toH3FrameType :: Int64 -> H3FrameType
- encodeH3Frame :: H3Frame -> IO ByteString
- encodeH3Frames :: [H3Frame] -> [ByteString]
- decodeH3Frame :: ByteString -> IO H3Frame
- data IFrame
- parseH3Frame :: IFrame -> ByteString -> IFrame
- data QInt
- = QInit
- | QMore Word8 Int Int [ByteString]
- | QDone Int64 ByteString
- parseQInt :: QInt -> ByteString -> QInt
- permittedInControlStream :: H3FrameType -> Bool
- permittedInRequestStream :: H3FrameType -> Bool
- permittedInPushStream :: H3FrameType -> Bool
Documentation
data ApplicationProtocolError where #
Application protocol errors of QUIC.
pattern H3NoError :: ApplicationProtocolError | |
pattern H3GeneralProtocolError :: ApplicationProtocolError | |
pattern H3InternalError :: ApplicationProtocolError | |
pattern H3StreamCreationError :: ApplicationProtocolError | |
pattern H3ClosedCriticalStream :: ApplicationProtocolError | |
pattern H3FrameUnexpected :: ApplicationProtocolError | |
pattern H3FrameError :: ApplicationProtocolError | |
pattern H3ExcessiveLoad :: ApplicationProtocolError | |
pattern H3IdError :: ApplicationProtocolError | |
pattern H3SettingsError :: ApplicationProtocolError | |
pattern H3MissingSettings :: ApplicationProtocolError | |
pattern H3RequestRejected :: ApplicationProtocolError | |
pattern H3RequestCancelled :: ApplicationProtocolError | |
pattern H3RequestIncomplete :: ApplicationProtocolError | |
pattern H3MessageError :: ApplicationProtocolError | |
pattern H3ConnectError :: ApplicationProtocolError | |
pattern H3VersionFallback :: ApplicationProtocolError |
Instances
Show ApplicationProtocolError | |
Defined in Network.QUIC.Types.Error showsPrec :: Int -> ApplicationProtocolError -> ShowS # show :: ApplicationProtocolError -> String # showList :: [ApplicationProtocolError] -> ShowS # | |
Eq ApplicationProtocolError | |
Defined in Network.QUIC.Types.Error |
data H3FrameType Source #
H3FrameData | |
H3FrameHeaders | |
H3FrameCancelPush | |
H3FrameSettings | |
H3FramePushPromise | |
H3FrameGoaway | |
H3FrameMaxPushId | |
H3FrameUnknown Int64 |
Instances
Show H3FrameType Source # | |
Defined in Network.HTTP3.Frame showsPrec :: Int -> H3FrameType -> ShowS # show :: H3FrameType -> String # showList :: [H3FrameType] -> ShowS # | |
Eq H3FrameType Source # | |
Defined in Network.HTTP3.Frame (==) :: H3FrameType -> H3FrameType -> Bool # (/=) :: H3FrameType -> H3FrameType -> Bool # |
fromH3FrameType :: H3FrameType -> Int64 Source #
toH3FrameType :: Int64 -> H3FrameType Source #
encodeH3Frame :: H3Frame -> IO ByteString Source #
encodeH3Frames :: [H3Frame] -> [ByteString] Source #
decodeH3Frame :: ByteString -> IO H3Frame Source #
IInit | Parsing is about to start |
IType QInt | Parsing type |
ILen H3FrameType QInt | Parsing length |
IPay H3FrameType Int Int [ByteString] | Parsing payload |
IDone H3FrameType ByteString ByteString | Parsing done |
parseH3Frame :: IFrame -> ByteString -> IFrame Source #