+## 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
-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"
-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"
-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"
-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"
-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"
-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"
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, _ ->
-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"
--- /dev/null
+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 <anil@recoil.org>"]
+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
-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 <anil@recoil.org>"]
authors: [
"Anil Madhavapeddy"
"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"}
(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
-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"
-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"
* 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
* 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
* 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. *)
* 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
* 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. *)
-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"
"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"
-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"
-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"
(lang dune 3.8)
(name cohttp)
-(version v6.2.1)
+(version v6.2.2)
(license ISC)
(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))
(= :version))
(cohttp-lwt
(= :version))
- (cmdliner
- (>= 2.0.0))
(lwt
(>= 3.0.0))
(conduit-lwt
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")
(cohttp-lwt
(and
:with-test
- (= :version)))
- lwt))
+ (= :version)))))
(package
(name cohttp-lwt-jsoo)
-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"