package h2

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

Install

Dune Dependency

Authors

Maintainers

Sources

h2-0.5.0.tbz
sha256=cc7517d73b0b24425afcedd258c09d7ebb6c2c20075137cb6f6eb7b63c8e7ad3
sha512=7c36532f127194e7bac8080ac667a0d01860071d3a5bd85ebc67ec91841d494a3a048dab424747c185e4fc6ea323548c7375af895bf70b5b720ee845df8944f0

CHANGES.md.html

Unreleased

0.5.0 2019-12-19

  • h2, h2-lwt, h2-lwt-unix, h2-mirage: Remove support for versions of OCaml lower than 4.06 (#74)

  • h2: Expose more information in client error handlers when initiating a connection (#80)

  • h2: Make H2.Status.t a strict superset of Httpaf.Status.t (#83)

  • h2-lwt, h2-lwt-unix: split HTTPS functions in 2: one that sets up a default secure connection and performs the TLS handshake / accept, and one that is more "raw", i.e. leaves that responsibility to the caller. Also exposes the socket type to make it easier to abstract over HTTP / HTTPS (#84)

  • h2-lwt, h2-lwt-unix, h2-mirage: Improve the H2_lwt.IO interface, don't require a report_exn function, only a state function that returns the socket state (#85)

  • h2, h2-lwt, h2-lwt-unix, h2-mirage: Add support for starting HTTP/2 for "http" URIs. Covers section 3.2 of the HTTP/2 specification (#87)

  • h2: Fix misinterpretation of the spec where h2 would consider a request / response malformed if it had a non-zero content-length header and no DATA frames (#89)

  • h2: Add Request.body_length and Response.body_length (#90)

  • h2: Fix a bug that caused DATA frames to be incorrectly chunked when returning a streaming response (#91)

  • h2: Drain pending bytes after getting a Close report from the runtime (#92)

  • h2: Report connection errors for unknown frames that exceed the maximum payload size -- they may not be speaking HTTP/2 (#93)

0.4.0 2019-11-05

  • h2-mirage: depend on mirage-conduit instead of conduit-mirage, effectively placing a lower bound of OCaml 4.07 on the next release of h2-mirage (#67)

  • h2-lwt-unix: replace the dune file (previously written in OCaml) with a (select) form to avoid depending on ocamlfind (#68)

  • h2-lwt, h2-lwt-unix, h2-mirage: Refactor interface code through common H2_lwt_intf and expose less (internal) types (#65)

  • h2-lwt, h2-lwt-unix, h2-mirage: Expose Client.is_closed (#65)

  • h2: Don't count peer max concurrent streams based on what the endpoint receives; the endpoint is responsible for selecting it (#71)

  • h2: Fix bug in Headers.remove that prevented removing the last header pair (#73)

  • h2: Fix bug in Headers.replace that prevented replacing the last header pair (#76)

  • h2-mirage: Adapt to Mirage 3.7 interfaces. h2_mirage now requires conduit-mirage >= 2.0.2 and mirage-flow >= 2.0.0 (#77)

0.3.0 2019-05-04

  • h2-mirage: Provide Server and Client functors that take a Mirage_flow_lwt.S module as an argument (#37)

  • h2: Fix bug in the client implementation that didn't report connection preface errors as soon as they happened (#38)

  • h2: optimize the stream scheduler: previously when the writer yielded between writes, a wake up function was registered with all the (active) streams, which required a linear traversal of all the streams. The optimization is to allow every stream to wake up a global writer to which they hold a reference (#40)

  • h2: improve handling of received frames against closed streams (#40)

  • h2: in the client implementation, call the stream level error handler when receiving an RST_STREAM frame (#42)

  • h2-lwt-unix: fail earlier when setting up a SSL/TLS server without the depopts being available (#46)

  • h2-lwt-unix: improve the default ALPN negotiation mechanism in the SSL binding (#46)

0.2.0 2019-04-06

  • h2: Fix false negative related to receiving trailer headers with CONTINUATION frames (#11)

  • hpack: Fix bug where trying to add an entry to an HPACK dynamic table with 0 capacity resulted in an out-of-bounds array access (#13, #35)

  • h2: Add support for the 421 (Misdirected Request) status code as per RFC7540§9.1.2 (#15)

  • h2, h2-lwt, h2-lwt-unix, h2-mirage: Add an HTTP/2 client implementation (#16)

  • h2: Remove dependency on the result package (#18)

  • h2: Track SETTINGS frames that haven't been acknowledged by the peer (#22)

  • h2: Don't treat CONNECT requests as malformed (#32, #34)

  • h2: Respect the initial MAX_FRAME_SIZE setting when allocating the underlying buffer for the frame writer (#34)

0.1.0 2019-03-27

  • Initial public release

OCaml

Innovation. Community. Security.