package piaf

  1. Overview
  2. Docs
An HTTP library with HTTP/2 support written entirely in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

piaf-0.1.0.tbz
sha256=00c3bea6d1a8c77dc18bbbbf1f449a78253cf17391ad153751b2e87f71307265
sha512=0f35e88b78ec1f1cd06a972ee69e29a8983b4c07dbc0268cc9764d8df5d9c2402cc3710874f54a111095fb57a08fe582d99d1b7e070e141e260af6ced50172aa

doc/piaf.hpack/Hpack/Decoder/index.html

Module Hpack.DecoderSource

Sourcetype t
Sourceval create : int -> t

create capacity initializes a decoder with a dynamic table with maximum size capacity. This size is an approximation of the memory usage in bytes.

See RFC7541§4.1 for more details.

Sourceval set_capacity : t -> int -> (unit, error) result

set_capacity decoder capacity sets decoder's dynamic table size to maximum size capacity. This size is an approximation of the memory overhead in bytes.

See RFC7540§6.5.2 and RFC7541§4.1 for more details.

Sourceval decode_headers : t -> (header list, error) result Angstrom.t

decode_headers decoder creates an Angstrom parser that will decode a header block and return a list of the decoded headers

OCaml

Innovation. Community. Security.