Skip to content

Commit af7a877

Browse files
committed
[new release] cohttp (14 packages) (6.0.0)
CHANGES: - 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 with [Request.make] (@rgrinberg 1086) - cohttp-eio: Remove unused `Client_intf` module (talex5 mirage/ocaml-cohttp#1081) - cohttp-eio: Make server response type abstract and allow streaming in cohttp-eio (talex5 mirage/ocaml-cohttp#1024) - cohttp-{lwt,eio}: server: add connection header to response if not present (ushitora-anqou mirage/ocaml-cohttp#1025) - cohttp-curl: Curl no longer prepends the first HTTP request header to the output. (jonahbeckford mirage/ocaml-cohttp#1030, mirage/ocaml-cohttp#987) - cohttp-eio: client: use permissive argument type for make_generic - cohttp-eio: Improve error handling in example server (talex5 mirage/ocaml-cohttp#1023) - cohttp-eio: Don't blow up `Server.callback` on client disconnections. (mefyl mirage/ocaml-cohttp#1015) - http: Fix assertion in `Source.to_string_trim` when `pos <> 0` (mefyl mirage/ocaml-cohttp#1017) - cohttp: `Cohttp.Request.make_for_client` no longer allows setting both `~chunked:true` and `~body_length`. - cohttp-lwt-unix: Don't blow up when certificates are not available and no-network requests are made. (akuhlens mirage/ocaml-cohttp#1027) + Makes `cohttp-lwt.S.default_ctx` lazy.
1 parent 232a37e commit af7a877

File tree

14 files changed

+872
-0
lines changed
  • packages
    • cohttp/cohttp.6.0.0
    • cohttp-async/cohttp-async.6.0.0
    • cohttp-bench/cohttp-bench.6.0.0
    • cohttp-curl/cohttp-curl.6.0.0
    • cohttp-curl-async/cohttp-curl-async.6.0.0
    • cohttp-curl-lwt/cohttp-curl-lwt.6.0.0
    • cohttp-eio/cohttp-eio.6.0.0
    • cohttp-lwt/cohttp-lwt.6.0.0
    • cohttp-lwt-jsoo/cohttp-lwt-jsoo.6.0.0
    • cohttp-lwt-unix/cohttp-lwt-unix.6.0.0
    • cohttp-mirage/cohttp-mirage.6.0.0
    • cohttp-server-lwt-unix/cohttp-server-lwt-unix.6.0.0
    • cohttp-top/cohttp-top.6.0.0
    • http/http.6.0.0

14 files changed

+872
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
opam-version: "2.0"
2+
synopsis: "CoHTTP implementation for the Async concurrency library"
3+
description: """
4+
An implementation of an HTTP client and server using the Async
5+
concurrency library. See the `Cohttp_async` module for information
6+
on how to use this. The package also installs `cohttp-curl-async`
7+
and a `cohttp-server-async` binaries for quick uses of a HTTP(S)
8+
client and server respectively.
9+
"""
10+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
11+
authors: [
12+
"Anil Madhavapeddy"
13+
"Stefano Zacchiroli"
14+
"David Sheets"
15+
"Thomas Gazagnaire"
16+
"David Scott"
17+
"Rudi Grinberg"
18+
"Andy Ray"
19+
"Anurag Soni"
20+
]
21+
license: "ISC"
22+
homepage: "https://github.com/mirage/ocaml-cohttp"
23+
doc: "https://mirage.github.io/ocaml-cohttp/"
24+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
25+
depends: [
26+
"dune" {>= "3.8"}
27+
"ocaml" {>= "4.14"}
28+
"http" {= version}
29+
"cohttp" {= version}
30+
"async_kernel" {>= "v0.16.0"}
31+
"async_unix" {>= "v0.16.0"}
32+
"async" {>= "v0.16.0"}
33+
"base" {>= "v0.16.0"}
34+
"core" {with-test}
35+
"core_unix" {>= "v0.14.0"}
36+
"conduit-async" {>= "1.2.0"}
37+
"magic-mime"
38+
"digestif" {with-test}
39+
"logs"
40+
"fmt" {>= "0.8.2"}
41+
"sexplib0"
42+
"ppx_sexp_conv" {>= "v0.13.0"}
43+
"ounit2" {with-test}
44+
"uri" {>= "2.0.0"}
45+
"uri-sexp"
46+
"ipaddr"
47+
"odoc" {with-doc}
48+
]
49+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
50+
build: [
51+
["dune" "subst"] {dev}
52+
[
53+
"dune"
54+
"build"
55+
"-p"
56+
name
57+
"-j"
58+
jobs
59+
"@install"
60+
"@cohttp-async/runtest" {with-test}
61+
"@doc" {with-doc}
62+
]
63+
]
64+
available: arch != "s390x"
65+
url {
66+
src:
67+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
68+
checksum: [
69+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
70+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
71+
]
72+
}
73+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
opam-version: "2.0"
2+
synopsis: "Benchmarks binaries for Cohttp"
3+
description: """
4+
This package contains some benchmarks for http and cohttp.
5+
The benchmarks for the server latency will require wrk2
6+
(https://github.com/giltene/wrk2) to run. The latency graphs
7+
can then be generated with HdrHistogram plotter, also available
8+
online at https://hdrhistogram.github.io/HdrHistogram/plotFiles.html."""
9+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
10+
authors: [
11+
"Anil Madhavapeddy"
12+
"Stefano Zacchiroli"
13+
"David Sheets"
14+
"Thomas Gazagnaire"
15+
"David Scott"
16+
"Rudi Grinberg"
17+
"Andy Ray"
18+
"Anurag Soni"
19+
]
20+
license: "ISC"
21+
homepage: "https://github.com/mirage/ocaml-cohttp"
22+
doc: "https://mirage.github.io/ocaml-cohttp/"
23+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
24+
depends: [
25+
"dune" {>= "3.8"}
26+
"core" {>= "v0.13.0"}
27+
"core_bench"
28+
"eio" {>= "0.12"}
29+
"eio_main"
30+
"http" {= version}
31+
"cohttp" {= version}
32+
"cohttp-eio" {= version}
33+
"cohttp-lwt-unix" {= version}
34+
"cohttp-server-lwt-unix" {= version}
35+
"cohttp-async" {= version}
36+
"odoc" {with-doc}
37+
]
38+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
39+
build: [
40+
["dune" "subst"] {dev}
41+
[
42+
"dune"
43+
"build"
44+
"-p"
45+
name
46+
"-j"
47+
jobs
48+
"@install"
49+
"@cohttp-bench/runtest" {with-test}
50+
"@doc" {with-doc}
51+
]
52+
]
53+
url {
54+
src:
55+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
56+
checksum: [
57+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
58+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
59+
]
60+
}
61+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
opam-version: "2.0"
2+
synopsis: "Cohttp client using Curl & Async as the backend"
3+
description: """
4+
An HTTP client that relies on Curl + Async for the backend. Does not require
5+
conduit for SSL."""
6+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
7+
authors: [
8+
"Anil Madhavapeddy"
9+
"Stefano Zacchiroli"
10+
"David Sheets"
11+
"Thomas Gazagnaire"
12+
"David Scott"
13+
"Rudi Grinberg"
14+
"Andy Ray"
15+
"Anurag Soni"
16+
]
17+
license: "ISC"
18+
homepage: "https://github.com/mirage/ocaml-cohttp"
19+
doc: "https://mirage.github.io/ocaml-cohttp/"
20+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
21+
depends: [
22+
"dune" {>= "3.8"}
23+
"ocurl" {>= "0.9.2"}
24+
"http" {= version}
25+
"stringext"
26+
"cohttp-curl" {= version}
27+
"core" {>= "v0.16.0"}
28+
"core_unix" {>= "v0.14.0"}
29+
"core_kernel" {with-test}
30+
"async_kernel" {with-test & >= "v0.17.0"}
31+
"async_unix" {with-test}
32+
"cohttp-async" {with-test & = version}
33+
"uri" {with-test & >= "4.2.0"}
34+
"fmt" {with-test}
35+
"ounit2" {with-test}
36+
"alcotest" {with-test & >= "1.7.0"}
37+
"odoc" {with-doc}
38+
]
39+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
40+
build: [
41+
["dune" "subst"] {dev}
42+
[
43+
"dune"
44+
"build"
45+
"-p"
46+
name
47+
"-j"
48+
jobs
49+
"@install"
50+
"@cohttp-curl-async/runtest" {with-test}
51+
"@doc" {with-doc}
52+
]
53+
]
54+
url {
55+
src:
56+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
57+
checksum: [
58+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
59+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
60+
]
61+
}
62+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
opam-version: "2.0"
2+
synopsis: "Cohttp client using Curl & Lwt as the backend"
3+
description: """
4+
An HTTP client that relies on Curl + Lwt for the backend. Does not require
5+
conduit for SSL."""
6+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
7+
authors: [
8+
"Anil Madhavapeddy"
9+
"Stefano Zacchiroli"
10+
"David Sheets"
11+
"Thomas Gazagnaire"
12+
"David Scott"
13+
"Rudi Grinberg"
14+
"Andy Ray"
15+
"Anurag Soni"
16+
]
17+
license: "ISC"
18+
homepage: "https://github.com/mirage/ocaml-cohttp"
19+
doc: "https://mirage.github.io/ocaml-cohttp/"
20+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
21+
depends: [
22+
"dune" {>= "3.8"}
23+
"ocaml" {>= "4.08"}
24+
"ocurl" {>= "0.9.2"}
25+
"http" {= version}
26+
"cohttp-curl" {= version}
27+
"stringext"
28+
"lwt" {>= "5.3.0"}
29+
"uri" {with-test & >= "4.2.0"}
30+
"alcotest" {with-test & >= "1.7.0"}
31+
"cohttp-lwt-unix" {with-test & = version}
32+
"cohttp" {with-test & = version}
33+
"cohttp-lwt" {with-test & = version}
34+
"conduit-lwt" {with-test}
35+
"ounit2" {with-test}
36+
"odoc" {with-doc}
37+
]
38+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
39+
build: [
40+
["dune" "subst"] {dev}
41+
[
42+
"dune"
43+
"build"
44+
"-p"
45+
name
46+
"-j"
47+
jobs
48+
"@install"
49+
"@cohttp-curl-lwt/runtest" {with-test}
50+
"@doc" {with-doc}
51+
]
52+
]
53+
url {
54+
src:
55+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
56+
checksum: [
57+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
58+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
59+
]
60+
}
61+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
opam-version: "2.0"
2+
synopsis: "Shared code between the individual cohttp-curl clients"
3+
description: "Use cohttp-curl-lwt or cohttp-curl-async"
4+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
5+
authors: [
6+
"Anil Madhavapeddy"
7+
"Stefano Zacchiroli"
8+
"David Sheets"
9+
"Thomas Gazagnaire"
10+
"David Scott"
11+
"Rudi Grinberg"
12+
"Andy Ray"
13+
"Anurag Soni"
14+
]
15+
license: "ISC"
16+
homepage: "https://github.com/mirage/ocaml-cohttp"
17+
doc: "https://mirage.github.io/ocaml-cohttp/"
18+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
19+
depends: [
20+
"dune" {>= "3.8"}
21+
"ocaml" {>= "4.08"}
22+
"ocurl" {>= "0.9.2"}
23+
"http" {= version}
24+
"stringext"
25+
"odoc" {with-doc}
26+
]
27+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
28+
build: [
29+
["dune" "subst"] {dev}
30+
[
31+
"dune"
32+
"build"
33+
"-p"
34+
name
35+
"-j"
36+
jobs
37+
"@install"
38+
"@cohttp-curl/runtest" {with-test}
39+
"@doc" {with-doc}
40+
]
41+
]
42+
url {
43+
src:
44+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
45+
checksum: [
46+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
47+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
48+
]
49+
}
50+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"
+62
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
opam-version: "2.0"
2+
synopsis: "CoHTTP implementation with eio backend"
3+
description:
4+
"A CoHTTP server and client implementation based on `eio` library. `cohttp-eio`features a multicore capable HTTP 1.1 server. The library promotes and is built with direct style of coding as opposed to a monadic."
5+
maintainer: ["Anil Madhavapeddy <[email protected]>"]
6+
authors: [
7+
"Anil Madhavapeddy"
8+
"Stefano Zacchiroli"
9+
"David Sheets"
10+
"Thomas Gazagnaire"
11+
"David Scott"
12+
"Rudi Grinberg"
13+
"Andy Ray"
14+
"Anurag Soni"
15+
]
16+
license: "ISC"
17+
homepage: "https://github.com/mirage/ocaml-cohttp"
18+
doc: "https://mirage.github.io/ocaml-cohttp/"
19+
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
20+
depends: [
21+
"dune" {>= "3.8"}
22+
"alcotest" {with-test & >= "1.7.0"}
23+
"base-domains"
24+
"cohttp" {= version}
25+
"eio" {>= "0.12"}
26+
"eio_main" {with-test}
27+
"mdx" {with-test}
28+
"logs"
29+
"uri"
30+
"tls-eio" {with-test & >= "1.0.0"}
31+
"mirage-crypto-rng-eio" {with-test & >= "0.11.2"}
32+
"ca-certs" {with-test & >= "1.0.0"}
33+
"fmt"
34+
"ptime"
35+
"http" {= version}
36+
"ppx_here" {with-test}
37+
"odoc" {with-doc}
38+
]
39+
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
40+
build: [
41+
["dune" "subst"] {dev}
42+
[
43+
"dune"
44+
"build"
45+
"-p"
46+
name
47+
"-j"
48+
jobs
49+
"@install"
50+
"@cohttp-eio/runtest" {with-test}
51+
"@doc" {with-doc}
52+
]
53+
]
54+
url {
55+
src:
56+
"https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0/cohttp-6.0.0.tbz"
57+
checksum: [
58+
"sha256=54cc34af128b342f4ae608a669650d66661ffdd503250e4de93a1a5ef1ef22a9"
59+
"sha512=289381d3ff5377208f86d68148846e086f017d4c09f4070e4f66e2cb1ef2b0e0c19a6b764a64f251b6005a2a6f169dec0f0f704f3278af410392b52415b9bdae"
60+
]
61+
}
62+
x-commit-hash: "716d6e66be35ed11967f3984ace27c1fa327b8ed"

0 commit comments

Comments
 (0)