Releases: mirage/ocaml-cohttp
v1.2.0
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
- Update to be compatible with new async/core (#607 by @rgrinberg)
- Remove use of deprecated
Lwt_logs
(#609 by @raphael-proust) - Do not rely on locale for printing qvalues (#611 by @vbmithr)
- Ppx dependencies aren't just build time dependencies (#625 by @rgrinberg)
v1.1.0
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
v1.0.1: Merge pull request #595 from samoht/changes
Stable release!
Port to jbuilder and split out opam packages
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 mainCohttp
modulecohttp-lwt
: the portable Lwt implementationcohttp-lwt-unix
: the Lwt/Unix implementationcohttp-lwt-jsoo
: the js-of-ocaml JavaScript implementationcohttp-async
: the Jane Street Async implementationmirage-http
: the MirageOS compatible implementationcohttp-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
Improve Async client error reporting
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
Bring make_body_writer
and write_header
into Cohttp.S.Http_io
. Needed by ocaml-git