Skip to content

Releases: mirage/ocaml-cohttp

v2.5.2

27 Jun 14:11
Compare
Choose a tag to compare

CHANGES:

  • cohttp, cohttp-async: correctly set host header for unix domain sockets,
    implement Unix domain socket support for cohttp-async (#698 @Leonidas-from-XIV)
  • cohttp: better body encoding management when creating request and
    response, and correction of Header.replace function (#694 @lyrm)

v2.5.1

18 Feb 14:49
Compare
Choose a tag to compare

CHANGES:

  • cohttp-lwt: pass ctx through HEAD client requests (#689 @hannesm)

v2.5.0

18 Dec 09:07
Compare
Choose a tag to compare

CHANGES:

  • cohttp-async: support async v0.13.0 (#680 @copy)
  • cohttp-lwt-jsoo: support js_of_ocaml 3.5.0 and higher (#682 @avsm @mseri)

v2.4.0

08 Nov 11:58
Compare
Choose a tag to compare

CHANGES:

  • mirage: adapt to new mirage interfaces: mirage-flow 2.0.0,
    mirage-channel 4.0.0, mirage-kv 3.0.0 (#678 @hannesm)
  • async: use Pipe.singleton instead of Pipe.of_list as it is more efficient
    (#677 @smuenzel-js)

v2.3.0

18 Aug 22:21
Compare
Choose a tag to compare

CHANGES:

  • use conduit-mirage instead of mirage-conduit, which was renamed
    upstream in conduit. The minimum OCaml version supported for
    conduit-mirage is now OCaml 4.07 and higher. (#672 @avsm)
  • remove deprecation warnings in OCaml 4.08.0 using stdlib-shims (#672 @avsm)
  • async: do not read body if none is present (#671 @emillon)

v2.2.0

20 Jul 20:51
Compare
Choose a tag to compare

CHANGES:

  • Previously if the client closed the connection while cohttp was
    handling a request, the server would crash (by default, unless the
    user overrode that using on_exn or changing Lwt's async exception
    handler). Now, cohttp will just log this at info level and
    continue. Exceptions produced by user code are logged as errors,
    while other exceptions generated by cohttp call back to the conduit
    exception handler, as before. (#669 @talex5)

v2.1.3

12 Jul 12:12
Compare
Choose a tag to compare

CHANGES:

  • support uri.3.0.0 that has optional sexp support (#668 @avsm)
  • use re.1.9.0 api to remove deprecation warnings (#664 @vbmithr)

v2.1.2

09 Apr 19:57
Compare
Choose a tag to compare

CHANGES:

  • cohttp: handle empty cookie components gracefully without raising
    an exception (#663 @martinslota)

v2.1.1

05 Apr 11:41
Compare
Choose a tag to compare

CHANGES:

  • cohttp-mirage: remove dependency on the result module
    (#662 @hannesm)
  • Support Async v0.12.0 and higher (#661 @copy)

v2.0.0

04 Feb 12:19
Compare
Choose a tag to compare

CHANGES:

Compatibility breaking interface changes:

Async: Expert response action no longer writes empty HTTP body (#647 by @andreas)

In cohttp.0.99, a number of subpackages were turned into explicit
opam packages to simplify dependency management.
To aid migration, some compatability shims were left in place so that
the old findlib names would continue to work. They have now been removed
as of this release. If you were still using them, then please rename
them as follows in your dune or ocamlbuild files:

  • cohttp.lwt-core -> cohttp-lwt
  • cohttp.lwt -> cohttp-lwt-unix
  • cohttp.js -> cohttp-lwt-jsoo
  • cohttp.async -> cohttp-async
  • cohttp.top -> cohttp-top

Other changes and bugfixes:

  • Lwt, Mirage: Add log warnings for uncaught exceptions (#592 by @ansiwen)
  • Log invalid client input and do not catch out of memory exceptions (#652 @hannesm)
  • Port opam files to opam2 and add local synopsis and descriptions.
  • Lwt: Add Expert response action for servers (#647 by @andreas)
  • Use the namespaced js_of_ocaml interfaces from 3.3.0 onwards (#654 @avsm)
  • Use Base64 3.1.0 interfaces (#655 @avsm)
  • Clean up redundant conflicts in the opam files (@avsm)