package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932

doc/dream-httpaf.dream-hpack/Dream_hpack/Hpack/Encoder/index.html

Module Hpack.EncoderSource

Sourcetype t
Sourceval create : int -> t

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

See RFC7541§4.1 for more details.

Sourceval encode_header : t -> Faraday.t -> header -> unit

encode_header encoder f header writes an encoded header to the Faraday buffer f.

Sourceval set_capacity : t -> int -> unit

set_capacity encoder capacity sets encoder'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.