Skip to content

Commit

Permalink
Merge pull request mirage#1096 from avsm/pre-6
Browse files Browse the repository at this point in the history
6.0.0 release
  • Loading branch information
avsm authored Nov 21, 2024
2 parents f6ed2e2 + 1267d1f commit 716d6e6
Show file tree
Hide file tree
Showing 22 changed files with 28 additions and 26 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ jobs:
opam install conf-libcurl
if: ${{ matrix.os == 'ubuntu-latest' }}
- run: |
brew update
if: ${{ matrix.os == 'macos-latest' }}
- run: echo "PKG_CONFIG_PATH=$(brew --prefix openssl)/lib/pkgconfig" >>"$GITHUB_ENV"
if: ${{ matrix.os == 'macos-latest' }}

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ _build/
.merlin
_opam/
node_modules
dune.lock/
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
## Unreleased
## v6.0.0 (2024-11-21)

- bump minimum dune version to 3.8 (@avsm)
- cohttp-eio: Use system authenticator in example.
- http, cohttp: remove the scheme field from requests. This means that
[Request.uri] no longer returns the same URI as was to create the request
Expand Down
2 changes: 1 addition & 1 deletion cohttp-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.14"}
"http" {= version}
"cohttp" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-bench.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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.0"}
"dune" {>= "3.8"}
"core" {>= "v0.13.0"}
"core_bench"
"eio" {>= "0.12"}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-curl-async.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocurl" {>= "0.9.2"}
"http" {= version}
"stringext"
Expand Down
2 changes: 1 addition & 1 deletion cohttp-curl-lwt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"ocurl" {>= "0.9.2"}
"http" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-curl.opam
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"ocurl" {>= "0.9.2"}
"http" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-eio.opam
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ 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.0"}
"dune" {>= "3.8"}
"alcotest" {with-test & >= "1.7.0"}
"base-domains"
"cohttp" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-lwt-jsoo.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"http" {= version}
"cohttp" {= version}
Expand Down
4 changes: 2 additions & 2 deletions cohttp-lwt-jsoo/src/cohttp_lwt_jsoo.mli
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ end

(** Build an asynchronous engine with chunked/unchucked response data treated as
raw bytes or UTF *)
module Make_client_async (P : Params) : Cohttp_lwt.S.Client
module Make_client_async (_ : Params) : Cohttp_lwt.S.Client

(** Build a synchronous engine with chunked/unchucked response data treated as
raw bytes or UTF *)
module Make_client_sync (P : Params) : Cohttp_lwt.S.Client
module Make_client_sync (_ : Params) : Cohttp_lwt.S.Client

module Client : Cohttp_lwt.S.Client
(** The [Client] module implements an HTTP client interface using asynchronous
Expand Down
2 changes: 1 addition & 1 deletion cohttp-lwt-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"http" {= version}
"cohttp" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-lwt.opam
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"http" {= version}
"cohttp" {= version}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-mirage.opam
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"mirage-flow" {>= "2.0.0"}
"mirage-channel" {>= "4.0.0"}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-mirage/src/client.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Make
(P : Mirage_clock.PCLOCK)
(_ : Mirage_clock.PCLOCK)
(R : Resolver_mirage.S)
(S : Conduit_mirage.S) : sig
module Connection : Cohttp_lwt.S.Connection
Expand Down
2 changes: 1 addition & 1 deletion cohttp-mirage/src/net.mli
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Make
(P : Mirage_clock.PCLOCK)
(_ : Mirage_clock.PCLOCK)
(R : Resolver_mirage.S)
(S : Conduit_mirage.S) : sig
type ctx = {
Expand Down
2 changes: 1 addition & 1 deletion cohttp-server-lwt-unix.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"http" {= version}
"lwt" {>= "5.5.0"}
Expand Down
2 changes: 1 addition & 1 deletion cohttp-top.opam
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"cohttp" {= version}
"odoc" {with-doc}
Expand Down
2 changes: 1 addition & 1 deletion cohttp.opam
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ 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.0"}
"dune" {>= "3.8"}
"http" {= version}
"ocaml" {>= "4.08"}
"re" {>= "1.9.0"}
Expand Down
4 changes: 2 additions & 2 deletions dune-project
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
(lang dune 3.0)
(lang dune 3.8)

(name cohttp)

(license ISC)

(using mdx 0.2)
(using mdx 0.4)

(cram enable)

Expand Down
2 changes: 1 addition & 1 deletion http.opam
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ 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.0"}
"dune" {>= "3.8"}
"ocaml" {>= "4.08"}
"ppx_expect" {with-test & >= "v0.17.0"}
"alcotest" {with-test & >= "1.7.0"}
Expand Down
6 changes: 1 addition & 5 deletions http/src/bytebuffer/bytebuffer.ml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ module Bytes = BytesLabels
on the bytebuffer.
*)

type t = {
mutable buf : Bytes.t;
mutable pos_read : int;
mutable pos_fill : int;
}
type t = { buf : Bytes.t; mutable pos_read : int; mutable pos_fill : int }

let create size =
let buf = Bytes.create size in
Expand Down

0 comments on commit 716d6e6

Please sign in to comment.