Skip to content

Releases: mirage/ocaml-cohttp

v1.2.0

19 Oct 14:00
Compare
Choose a tag to compare

CHANGES:

  • Support more than a single chunk extension for RFC7320 compliance (#618 by @djs55)
  • Lwt-unix: add a ?backlog argument to the serve function (@samoht)
  • Use the uri.2.0.0 interfaces for sexpression generation of types (@avsm)
  • Switch to sexplib0 for a more lightweight s-expression library (@mseri)
  • Minimum OCaml compiler version requirement is now 4.04.1 (@mseri)
  • Add an example of using custom resolvers to the README (@mseri)

Work with latest Async and deprecate Lwt_log usage

19 Oct 12:24
9982501
Compare
Choose a tag to compare

v1.1.0

24 Mar 15:10
b30207c
Compare
Choose a tag to compare

v1.1.0 (2018-03-28)

  • Add an "expert mode" to hand off raw responses to a custom handler,
    which in turns makes protocols like Websockets easier (#488 by @msaffer).
  • Set the user-agent by default if one is not provided (#586 by @TheCBaH).
  • Fix typo in the cohttp.js META file.
  • Refresh use of the Re library to the latest version (#602 by @rgrinberg).
  • Rearrange the ppx dependencies to be more specific (#596 by @yomimono).
  • Explicitly depend on sexplib in the Async backend (#605 by @kevinqiu).

Support Async v0.10.0

06 Jan 16:46
Compare
Choose a tag to compare
  • Support Async v0.10.0 and OCaml 4.06.0 (#588 via @vbmithr)
  • Require ppx_deriving >=v0.9.1 due to a bug with duplicate modules
    present in earlier versions.

v1.0.1: Merge pull request #595 from samoht/changes

03 Jan 11:03
7dc7dbe
Compare
Choose a tag to compare

v1.0.1 (2018-01-03)

  • cohttp-mirage: expose the missing IO module (#594, @samoht)
  • cohttp-mirage: catch exceptions when closing channels in mirage client
    (#589, @ansiwen)

Stable release!

17 Nov 17:57
f4a8854
Compare
Choose a tag to compare
  • opam: rename mirage-http to cohttp-mirage` (#572)
  • cohttp-lwt{,-unix}: wrap the libraries in top-level modules (#568)
  • opam: improve dependencies (#574, #566, #575)
  • cohttp: add the convenience function Header.is_empty (#576)
  • fix compatibility with OCaml 4.06 and -safe-string (#580, #581)

Port to jbuilder and split out opam packages

11 Jul 15:48
Compare
Choose a tag to compare

Port build to jbuilder, and break up OPAM packages into multiple
independent packages instead of being optional dependencies against
the main cohttp package. This makes it significantly easier to
depend on precisely the libraries you need, but requires porting
applications to use the new ocamlfind and opam scheme.

The new package layout is:

  • cohttp: the main Cohttp module
  • cohttp-lwt: the portable Lwt implementation
  • cohttp-lwt-unix: the Lwt/Unix implementation
  • cohttp-lwt-jsoo: the js-of-ocaml JavaScript implementation
  • cohttp-async: the Jane Street Async implementation
  • mirage-http: the MirageOS compatible implementation
  • cohttp-top: a toplevel printer for the Cohttp types.

In each of these packages, the opam and ocamlfind package
names are now the same, so you will need to rename the former
subpackages such as cohttp.async to cohttp-async. The
implementation is otherwise the same, so no other code changes
should be required.

In return for these breaking changes to the packaging, it is
now significantly easier to depend on a particular backend,
also for us to rev the interfaces towards a stable 1.0 release.
Jbuilder also builds the source tree around 4x faster than it
did previously.

A number of deprecation warnings have been added to the source
tree as well to mark the interfaces that will be removed in 1.0.
These are Cohttp_lwt.{Client,Server,Net}, and a Cohttp_lwt.Body
alias was added to deprecate the direct use of Cohttp_lwt_body.
This will let us unify the namespaces of all the packages to use
a single top-level module for each package in the future.

Support newer Async and binary POSTing

28 Sep 11:24
Compare
Choose a tag to compare
  • Support Async 113.00 by explicitly using the blocking Core printf (#431)
  • cohttp_curl_async: add -data-binary to send POST data. (#425)

Improve Async client error reporting

21 Aug 13:43
Compare
Choose a tag to compare

Improve Cohttp_async.Client error handling. When a Uri.t fails to resolve it is now included in the error. (#420)

Expose more low-level interfaces for HTTP body handling

21 Aug 13:44
Compare
Choose a tag to compare

Bring make_body_writer and write_header into Cohttp.S.Http_io. Needed by ocaml-git