Documentation

Hale.Http2.Network.HTTP2.HPACK.Decode

Decode result: parsed value and the number of bytes consumed.

  • value : α

    The decoded value.

  • consumed : Nat

    Number of bytes consumed from input.

Instances For
    Equations
    • One or more equations did not get rendered due to their size.
    Instances For

      Decode an integer with the given prefix size (1-8 bits). Returns the decoded integer and number of bytes consumed.

      $$\text{decodeInteger} : \text{ByteArray} \to \text{Nat} \to \text{Nat} \to \text{Option}(\text{DecodeResult}(\text{Nat}))$$

      Equations
      • One or more equations did not get rendered due to their size.
      Instances For
        def Network.HTTP2.HPACK.decodeInteger.go (bs : ByteArray) (offset pos value shift fuel : Nat) :
        Equations
        Instances For

          Decode a string from HPACK format. The high bit of the first byte indicates Huffman encoding.

          $$\text{decodeString} : \text{ByteArray} \to \text{Nat} \to \text{Option}(\text{DecodeResult}(\text{String}))$$

          Equations
          • One or more equations did not get rendered due to their size.
          Instances For

            Decode a complete HPACK header block into a list of header fields. Updates the dynamic table as fields with indexing are decoded.

            $$\text{decodeHeaders} : \text{DynamicTable} \to \text{ByteArray} \to \text{Option}(\text{List}(\text{HeaderField}) \times \text{DynamicTable})$$

            Equations
            Instances For
              Equations
              Instances For