From: Stephane Glondu Date: Wed, 5 Aug 2026 15:09:49 +0000 (+0200) Subject: New upstream version 6.2.2 X-Git-Tag: archive/raspbian/6.2.2-1+rpi1^2~5^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=21f14dbaa98cc853628ee19eac506fc91238c7da;p=ocaml-cohttp.git New upstream version 6.2.2 --- diff --git a/CHANGES.md b/CHANGES.md index 3c386bc..3371502 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,9 @@ +## v6.2.2 (2026-07-26) + +- cohttp: remove duplicate occurance of lwt in dune-project (@Alizter, #1138) +- cohttp-lwt: factor cohttp-lwt-unix binaries into their own project (@dijkstracula, #1139) +- cohttp-eio: update for new Eio 1.4 getaddrinfo exception (@talex5, #1142) + ## v6.2.1 (2025-12-16) - cohttp: Fix syntax in forward proxy tests to recover compatibility with OCaml diff --git a/cohttp-async.opam b/cohttp-async.opam index f419fb6..0052093 100644 --- a/cohttp-async.opam +++ b/cohttp-async.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation for the Async concurrency library" diff --git a/cohttp-bench.opam b/cohttp-bench.opam index 69bab1e..9e5bdf8 100644 --- a/cohttp-bench.opam +++ b/cohttp-bench.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Benchmarks binaries for Cohttp" diff --git a/cohttp-curl-async.opam b/cohttp-curl-async.opam index 50f608b..5f8dc54 100644 --- a/cohttp-curl-async.opam +++ b/cohttp-curl-async.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Cohttp client using Curl & Async as the backend" diff --git a/cohttp-curl-lwt.opam b/cohttp-curl-lwt.opam index a28ecf7..735ad62 100644 --- a/cohttp-curl-lwt.opam +++ b/cohttp-curl-lwt.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Cohttp client using Curl & Lwt as the backend" diff --git a/cohttp-curl.opam b/cohttp-curl.opam index df4c2f5..be347e1 100644 --- a/cohttp-curl.opam +++ b/cohttp-curl.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Shared code between the individual cohttp-curl clients" diff --git a/cohttp-eio.opam b/cohttp-eio.opam index 4d8af49..1f51b0f 100644 --- a/cohttp-eio.opam +++ b/cohttp-eio.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation with eio backend" diff --git a/cohttp-eio/tests/test_forward_proxy.ml b/cohttp-eio/tests/test_forward_proxy.ml index d425543..da2eda9 100644 --- a/cohttp-eio/tests/test_forward_proxy.ml +++ b/cohttp-eio/tests/test_forward_proxy.ml @@ -109,7 +109,8 @@ let () = https://www.rfc-editor.org/rfc/rfc2606 *) let uri = Uri.of_string "http://foo.invalid" in match Cohttp_eio.Client.get ~sw client uri with - | exception Failure _ -> + | exception Failure _ + | exception Eio.Io (Eio.Net.E _, _) -> (* This should fail, since we are not using the proxy *) () | unexepcted_resp, _ -> diff --git a/cohttp-lwt-jsoo.opam b/cohttp-lwt-jsoo.opam index d4cff34..f4b8a2d 100644 --- a/cohttp-lwt-jsoo.opam +++ b/cohttp-lwt-jsoo.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation for the Js_of_ocaml JavaScript compiler" diff --git a/cohttp-lwt-unix-bin.opam b/cohttp-lwt-unix-bin.opam new file mode 100644 index 0000000..711dfce --- /dev/null +++ b/cohttp-lwt-unix-bin.opam @@ -0,0 +1,51 @@ +version: "6.2.2" +# This file is generated by dune, edit dune-project instead +opam-version: "2.0" +synopsis: "Command-line utilities shipped with cohttp-lwt-unix" +description: """ +This package contains the `cohttp-curl-lwt`, `cohttp-proxy-lwt`, and +`cohttp-server-lwt` command-line utilities. They were previously built +as part of `cohttp-lwt-unix`, but were split out so that library +consumers do not transitively depend on `cmdliner`.""" +maintainer: ["Anil Madhavapeddy "] +authors: [ + "Anil Madhavapeddy" + "Stefano Zacchiroli" + "David Sheets" + "Thomas Gazagnaire" + "David Scott" + "Rudi Grinberg" + "Andy Ray" + "Anurag Soni" +] +license: "ISC" +homepage: "https://github.com/mirage/ocaml-cohttp" +doc: "https://mirage.github.io/ocaml-cohttp/" +bug-reports: "https://github.com/mirage/ocaml-cohttp/issues" +depends: [ + "dune" {>= "3.8"} + "ocaml" {>= "4.08"} + "cohttp" {= version} + "cohttp-lwt" {= version} + "cohttp-lwt-unix" {= version} + "cmdliner" {>= "2.0.0"} + "conduit-lwt" {>= "7.1.0"} + "fmt" + "logs" + "odoc" {with-doc} +] +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@runtest" {with-test} + "@doc" {with-doc} + ] +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" \ No newline at end of file diff --git a/cohttp-lwt-unix.opam b/cohttp-lwt-unix.opam index ab53b2c..2e970d2 100644 --- a/cohttp-lwt-unix.opam +++ b/cohttp-lwt-unix.opam @@ -1,17 +1,19 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation for Unix and Windows using Lwt" description: """ An implementation of an HTTP client and server using the Lwt concurrency library. See the `Cohttp_lwt_unix` module for information -on how to use this. The package also installs `cohttp-curl-lwt` -and a `cohttp-server-lwt` binaries for quick uses of a HTTP(S) -client and server respectively. +on how to use this. Although the name implies that this only works under Unix, it should also be fine under Windows too. -""" + +The accompanying `cohttp-curl-lwt`, `cohttp-proxy-lwt`, and +`cohttp-server-lwt` command-line utilities ship in the separate +`cohttp-lwt-unix-bin` package so that library consumers do not +transitively depend on `cmdliner`.""" maintainer: ["Anil Madhavapeddy "] authors: [ "Anil Madhavapeddy" @@ -33,7 +35,6 @@ depends: [ "http" {= version} "cohttp" {= version} "cohttp-lwt" {= version} - "cmdliner" {>= "2.0.0"} "lwt" {>= "3.0.0"} "conduit-lwt" {>= "7.1.0"} "conduit-lwt-unix" {>= "7.1.0"} diff --git a/cohttp-lwt-unix/bin/dune b/cohttp-lwt-unix/bin/dune index a80d747..44ae915 100644 --- a/cohttp-lwt-unix/bin/dune +++ b/cohttp-lwt-unix/bin/dune @@ -1,5 +1,7 @@ (executables (names cohttp_curl_lwt cohttp_proxy_lwt cohttp_server_lwt) + (public_names cohttp-curl-lwt cohttp-proxy-lwt cohttp-server-lwt) + (package cohttp-lwt-unix-bin) (libraries cohttp-lwt-unix cohttp_server diff --git a/cohttp-lwt.opam b/cohttp-lwt.opam index 604ffbb..cffc3ea 100644 --- a/cohttp-lwt.opam +++ b/cohttp-lwt.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation using the Lwt concurrency library" diff --git a/cohttp-mirage.opam b/cohttp-mirage.opam index e60dfea..1130090 100644 --- a/cohttp-mirage.opam +++ b/cohttp-mirage.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP implementation for the MirageOS unikernel" diff --git a/cohttp-mirage/src/client.ml b/cohttp-mirage/src/client.ml index c9475f3..5644293 100644 --- a/cohttp-mirage/src/client.ml +++ b/cohttp-mirage/src/client.ml @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * cohttp v6.2.1 + * cohttp v6.2.2 *) module Make (R : Resolver_mirage.S) (S : Conduit_mirage.S) = struct diff --git a/cohttp-mirage/src/io.ml b/cohttp-mirage/src/io.ml index 13f74dc..f5124f1 100644 --- a/cohttp-mirage/src/io.ml +++ b/cohttp-mirage/src/io.ml @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * cohttp v6.2.1 + * cohttp v6.2.2 *) open Lwt.Infix diff --git a/cohttp-mirage/src/io.mli b/cohttp-mirage/src/io.mli index 07e4127..b397149 100644 --- a/cohttp-mirage/src/io.mli +++ b/cohttp-mirage/src/io.mli @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * cohttp v6.2.1 + * cohttp v6.2.2 *) (** Cohttp IO implementation using Mirage channels. *) diff --git a/cohttp-mirage/src/static.ml b/cohttp-mirage/src/static.ml index 4de1b2c..77a4f5c 100644 --- a/cohttp-mirage/src/static.ml +++ b/cohttp-mirage/src/static.ml @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * cohttp v6.2.1 + * cohttp v6.2.2 *) module Key = Mirage_kv.Key diff --git a/cohttp-mirage/src/static.mli b/cohttp-mirage/src/static.mli index f443f3d..4d2d2ce 100644 --- a/cohttp-mirage/src/static.mli +++ b/cohttp-mirage/src/static.mli @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * cohttp v6.2.1 + * cohttp v6.2.2 *) (** Serve static HTTP sites from a Mirage key-value store. *) diff --git a/cohttp-server-lwt-unix.opam b/cohttp-server-lwt-unix.opam index 24dba0c..2e1f87f 100644 --- a/cohttp-server-lwt-unix.opam +++ b/cohttp-server-lwt-unix.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Lightweight Cohttp + Lwt based HTTP server" @@ -29,7 +29,6 @@ depends: [ "conduit-lwt-unix" {with-test} "cohttp-lwt-unix" {with-test & = version} "cohttp-lwt" {with-test & = version} - "lwt" "odoc" {with-doc} ] dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" diff --git a/cohttp-top.opam b/cohttp-top.opam index 3006517..e27d0ac 100644 --- a/cohttp-top.opam +++ b/cohttp-top.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "CoHTTP toplevel pretty printers for HTTP types" diff --git a/cohttp.opam b/cohttp.opam index bded151..f11d47d 100644 --- a/cohttp.opam +++ b/cohttp.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "An OCaml library for HTTP clients and servers" diff --git a/dune-project b/dune-project index c71b0c4..2d5e1d3 100644 --- a/dune-project +++ b/dune-project @@ -1,7 +1,7 @@ (lang dune 3.8) (name cohttp) -(version v6.2.1) +(version v6.2.2) (license ISC) @@ -92,7 +92,7 @@ (name cohttp-lwt-unix) (synopsis "CoHTTP implementation for Unix and Windows using Lwt") (description - "An implementation of an HTTP client and server using the Lwt\nconcurrency library. See the `Cohttp_lwt_unix` module for information\non how to use this. The package also installs `cohttp-curl-lwt`\nand a `cohttp-server-lwt` binaries for quick uses of a HTTP(S)\nclient and server respectively.\n\nAlthough the name implies that this only works under Unix, it\nshould also be fine under Windows too.\n") + "An implementation of an HTTP client and server using the Lwt\nconcurrency library. See the `Cohttp_lwt_unix` module for information\non how to use this.\n\nAlthough the name implies that this only works under Unix, it\nshould also be fine under Windows too.\n\nThe accompanying `cohttp-curl-lwt`, `cohttp-proxy-lwt`, and\n`cohttp-server-lwt` command-line utilities ship in the separate\n`cohttp-lwt-unix-bin` package so that library consumers do not\ntransitively depend on `cmdliner`.") (depends (ocaml (>= 4.08)) @@ -102,8 +102,6 @@ (= :version)) (cohttp-lwt (= :version)) - (cmdliner - (>= 2.0.0)) (lwt (>= 3.0.0)) (conduit-lwt @@ -119,6 +117,27 @@ logs (ounit2 :with-test))) +(package + (name cohttp-lwt-unix-bin) + (synopsis "Command-line utilities shipped with cohttp-lwt-unix") + (description + "This package contains the `cohttp-curl-lwt`, `cohttp-proxy-lwt`, and\n`cohttp-server-lwt` command-line utilities. They were previously built\nas part of `cohttp-lwt-unix`, but were split out so that library\nconsumers do not transitively depend on `cmdliner`.") + (depends + (ocaml + (>= 4.08)) + (cohttp + (= :version)) + (cohttp-lwt + (= :version)) + (cohttp-lwt-unix + (= :version)) + (cmdliner + (>= 2.0.0)) + (conduit-lwt + (>= 7.1.0)) + fmt + logs)) + (package (name cohttp-server-lwt-unix) (synopsis "Lightweight Cohttp + Lwt based HTTP server") @@ -139,8 +158,7 @@ (cohttp-lwt (and :with-test - (= :version))) - lwt)) + (= :version))))) (package (name cohttp-lwt-jsoo) diff --git a/http.opam b/http.opam index 9998981..7b13443 100644 --- a/http.opam +++ b/http.opam @@ -1,4 +1,4 @@ -version: "6.2.1" +version: "6.2.2" # This file is generated by dune, edit dune-project instead opam-version: "2.0" synopsis: "Type definitions of HTTP essentials"