Hoogle Search
Within LTS Haskell 24.58 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
-
http2 Network.HPACK No documentation available.
decodeHeader :: DynamicTable -> ByteString -> IO [Header]http2 Network.HPACK Converting the HPACK format to '[Header]'.
- Headers are decoded as is.
- DecodeError would be thrown if the HPACK format is broken.
- BufferOverrun will be thrown if the temporary buffer for Huffman decoding is too small.
decodeTokenHeader :: DynamicTable -> ByteString -> IO TokenHeaderTablehttp2 Network.HPACK Converting the HPACK format to TokenHeaderList and ValueTable.
- Multiple values of Cookie: are concatenated.
- If a pseudo header appears multiple times, IllegalHeaderName is thrown.
- If unknown pseudo headers appear, IllegalHeaderName is thrown.
- If pseudo headers are found after normal headers, IllegalHeaderName is thrown.
- If a header key contains capital letters, IllegalHeaderName is thrown.
- DecodeError would be thrown if the HPACK format is broken.
- BufferOverrun will be thrown if the temporary buffer for Huffman decoding is too small.
encodeHeader :: EncodeStrategy -> Size -> DynamicTable -> [Header] -> IO ByteStringhttp2 Network.HPACK Converting '[Header]' to the HPACK format. This function has overhead of allocating/freeing a temporary buffer. BufferOverrun will be thrown if the temporary buffer is too small.
-
http2 Network.HPACK Converting TokenHeaderList to the HPACK format directly in the buffer. When calling this function for a new TokenHeaderList, 4th argument must be True. The return value is a pair of leftover TokenHeaderList and how many bytes are filled in the buffer. If the leftover is empty, the encoding is finished. Otherwise, this function should be called with it again. 4th argument must be False. 4th argument is relating to dynamic table size update. If True and the limit is set by setLimitForEncoding, dynamic table size update is generated at the beginning of the HPACK format.
getHeaderValue :: Token -> ValueTable -> Maybe FieldValuehttp2 Network.HPACK Accessing FieldValue with Token.
toTokenHeaderTable :: [Header] -> IO TokenHeaderTablehttp2 Network.HPACK Converting a header list of the http-types style to TokenHeaderList and ValueTable.
entryHeaderName :: Entry -> HeaderNamehttp2 Network.HPACK.Internal Getting HeaderName.
entryTokenHeader :: Entry -> TokenHeaderhttp2 Network.HPACK.Internal Getting TokenHeader.
toTokenHeaderTable :: [Header] -> IO TokenHeaderTablehttp2 Network.HPACK.Internal Converting a header list of the http-types style to TokenHeaderList and ValueTable.