-# v6.1.0 (2025-03-03)
+## v6.1.1 (2025-05-28)
+
+- cohttp-mirage: make client usable again -- this fixes a regression introduced
+ by #1080 (@Firobe, review by @edwintorok, #1110)
+- rename main function on README example (@Unn4m3DD, #1097)
+
+## v6.1.0 (2025-03-03)
- cohttp-lwt-unix: Add http/https proxy support for client requests (@art-w @MisterDA, #1080)
- cohttp-mirage: Support conduit 8.0.0 (@hannesm, #1104)
open Cohttp
open Cohttp_lwt_unix
-let body =
+let main =
Client.get (Uri.of_string "https://www.reddit.com/") >>= fun (resp, body) ->
let code = resp |> Response.status |> Code.code_of_status in
Printf.printf "Response code: %d\n" code;
body
let () =
- let body = Lwt_main.run body in
+ let body = Lwt_main.run main in
print_endline ("Received body\n" ^ body)
```
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation for the Async concurrency library"
"@doc" {with-doc}
]
]
-available: arch != "s390x"
\ No newline at end of file
+available: arch != "s390x"
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
]
]
available: arch != "s390x"
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Benchmarks binaries for Cohttp"
"@cohttp-bench/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Cohttp client using Curl & Async as the backend"
"@cohttp-curl-async/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Cohttp client using Curl & Lwt as the backend"
"@cohttp-curl-lwt/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Shared code between the individual cohttp-curl clients"
"@cohttp-curl/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation with eio backend"
"@cohttp-eio/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation for the Js_of_ocaml JavaScript compiler"
"@cohttp-lwt-jsoo/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation for Unix and Windows using Lwt"
"@cohttp-lwt-unix/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation using the Lwt concurrency library"
"@cohttp-lwt/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP implementation for the MirageOS unikernel"
"@cohttp-mirage/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * cohttp v6.1.0
+ * cohttp v6.1.1
*)
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.1.0
+ * cohttp v6.1.1
*)
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.1.0
+ * cohttp v6.1.1
*)
(** Cohttp IO implementation using Mirage channels. *)
type endp = Conduit.endp
type client
- let tunnel = failwith "Unimplemented"
- let connect_client = failwith "Unimplemented"
+ let tunnel _ _ = failwith "Unimplemented"
+ let connect_client ~ctx:_ _ = failwith "Unimplemented"
let resolve ~ctx uri = R.resolve_uri ~uri ctx.resolver
let connect_endp ~ctx endp =
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * cohttp v6.1.0
+ * cohttp v6.1.1
*)
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.1.0
+ * cohttp v6.1.1
*)
(** Serve static HTTP sites from a Mirage key-value store. *)
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Lightweight Cohttp + Lwt based HTTP server"
"@cohttp-server-lwt-unix/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "CoHTTP toplevel pretty printers for HTTP types"
"@cohttp-top/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "An OCaml library for HTTP clients and servers"
"@cohttp/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]
(lang dune 3.8)
(name cohttp)
-(version v6.1.0)
+(version v6.1.1)
(license ISC)
-version: "6.1.0"
+version: "6.1.1"
# This file is generated by dune, edit dune-project instead
opam-version: "2.0"
synopsis: "Type definitions of HTTP essentials"
"@http/runtest" {with-test}
"@doc" {with-doc}
]
-]
\ No newline at end of file
+]
+x-maintenance-intent: [ "(latest)" ]
\ No newline at end of file
"@doc" {with-doc}
]
]
+x-maintenance-intent: [ "(latest)" ]