package h2

  1. Overview
  2. Docs
A high-performance, memory-efficient, and scalable HTTP/2 library for OCaml

Install

dune-project
 Dependency

Authors

Maintainers

Sources

h2-0.13.0.tbz
sha256=0d89b6f178175294e7a207223be81d5b83fc31b97549bec34f0432a3b2a8070f
sha512=a442cb80f40fd179211e9ab7b4b748a4d2f7ad6ece75301d74a5363c08cd05a70b94ae90ff6fc6b95e8284c57c14cc17cbe7ade5dbf19b21b56207c6f984faf4

doc/h2/H2/Config/index.html

Module H2.ConfigSource

HTTP/2 Configuration

Sourcetype t = {
  1. read_buffer_size : int;
    (*

    read_buffer_size specifies the size of the largest frame payload that the sender is willing to receive, in octets. Defaults to 16384

    *)
  2. request_body_buffer_size : int;
    (*

    Defaults to 4096

    *)
  3. response_body_buffer_size : int;
    (*

    Defaults to 4096

    *)
  4. enable_server_push : bool;
    (*

    Defaults to true

    *)
  5. max_concurrent_streams : int32;
    (*

    max_concurrent_streams specifies the maximum number of streams that the sender will allow the peer to initiate. Defaults to 2^31 - 1

    *)
  6. initial_window_size : int32;
    (*

    initial_window_size specifies the initial window size for flow control tokens. Defaults to 65535

    *)
}
Sourceval default : t

default is a configuration record with all parameters set to their default values.

Sourceval to_settings : t -> Settings.t