From 04dd9f2524e358342a9e0a089d966fdc85b28240 Mon Sep 17 00:00:00 2001 From: Marcello Seri Date: Tue, 8 Aug 2023 18:25:23 +0200 Subject: [PATCH] [new release] http, cohttp, cohttp-top, cohttp-server-lwt-unix, cohttp-mirage, cohttp-lwt, cohttp-lwt-unix, cohttp-lwt-jsoo, cohttp-eio, cohttp-curl, cohttp-curl-lwt, cohttp-curl-async and cohttp-async (6.0.0~alpha2) CHANGES: - cohttp-lwt: Do not leak exceptions to `Lwt.async_exception_hook`. (mefyl mirage/ocaml-cohttp#992, mirage/ocaml-cohttp#995) - http.header, cohttp, cohttp-eio: remove "first" and "move_to_first" and the special treatment of the "host" header (mseri mirage/ocaml-cohttp#988, mirage/ocaml-cohttp#986) - http.header: introduce "iter_ord" to guarantee iteration following the order of the entries in the headers (mseri mirage/ocaml-cohttp#986) - do not omit mandatory null Content-Length headers (mefyl mirage/ocaml-cohttp#985) - cohttp-async, cohttp-curl-async: compatibility with core/async v0.16.0 (mseri, dkalinichenko-js mirage/ocaml-cohttp#976) - cohttp-lwt server: call conn_closed before drainig the body of response on error (pirbo mirage/ocaml-cohttp#982) - cohttp-eio: Relax socket interface requirement on `Server.connection_handler`. (mefyl mirage/ocaml-cohttp#983) --- .../cohttp-async.6.0.0~alpha2/opam | 73 +++++++++++++++++++ .../cohttp-curl-async.6.0.0~alpha2/opam | 61 ++++++++++++++++ .../cohttp-curl-lwt.6.0.0~alpha2/opam | 61 ++++++++++++++++ .../cohttp-curl/cohttp-curl.6.0.0~alpha2/opam | 50 +++++++++++++ .../cohttp-eio/cohttp-eio.6.0.0~alpha2/opam | 55 ++++++++++++++ .../cohttp-lwt-jsoo.6.0.0~alpha2/opam | 62 ++++++++++++++++ .../cohttp-lwt-unix.6.0.0~alpha2/opam | 69 ++++++++++++++++++ .../cohttp-lwt/cohttp-lwt.6.0.0~alpha2/opam | 61 ++++++++++++++++ .../cohttp-mirage.6.0.0~alpha2/opam | 69 ++++++++++++++++++ .../cohttp-server-lwt-unix.6.0.0~alpha2/opam | 56 ++++++++++++++ .../cohttp-top/cohttp-top.6.0.0~alpha2/opam | 53 ++++++++++++++ packages/cohttp/cohttp.6.0.0~alpha2/opam | 73 +++++++++++++++++++ packages/http/http.6.0.0~alpha2/opam | 59 +++++++++++++++ 13 files changed, 802 insertions(+) create mode 100644 packages/cohttp-async/cohttp-async.6.0.0~alpha2/opam create mode 100644 packages/cohttp-curl-async/cohttp-curl-async.6.0.0~alpha2/opam create mode 100644 packages/cohttp-curl-lwt/cohttp-curl-lwt.6.0.0~alpha2/opam create mode 100644 packages/cohttp-curl/cohttp-curl.6.0.0~alpha2/opam create mode 100644 packages/cohttp-eio/cohttp-eio.6.0.0~alpha2/opam create mode 100644 packages/cohttp-lwt-jsoo/cohttp-lwt-jsoo.6.0.0~alpha2/opam create mode 100644 packages/cohttp-lwt-unix/cohttp-lwt-unix.6.0.0~alpha2/opam create mode 100644 packages/cohttp-lwt/cohttp-lwt.6.0.0~alpha2/opam create mode 100644 packages/cohttp-mirage/cohttp-mirage.6.0.0~alpha2/opam create mode 100644 packages/cohttp-server-lwt-unix/cohttp-server-lwt-unix.6.0.0~alpha2/opam create mode 100644 packages/cohttp-top/cohttp-top.6.0.0~alpha2/opam create mode 100644 packages/cohttp/cohttp.6.0.0~alpha2/opam create mode 100644 packages/http/http.6.0.0~alpha2/opam diff --git a/packages/cohttp-async/cohttp-async.6.0.0~alpha2/opam b/packages/cohttp-async/cohttp-async.6.0.0~alpha2/opam new file mode 100644 index 00000000000..b4d419d4791 --- /dev/null +++ b/packages/cohttp-async/cohttp-async.6.0.0~alpha2/opam @@ -0,0 +1,73 @@ +opam-version: "2.0" +synopsis: "CoHTTP implementation for the Async concurrency library" +description: """ +An implementation of an HTTP client and server using the Async +concurrency library. See the `Cohttp_async` module for information +on how to use this. The package also installs `cohttp-curl-async` +and a `cohttp-server-async` binaries for quick uses of a HTTP(S) +client and server respectively. +""" +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.0"} + "ocaml" {>= "4.14"} + "http" {= version} + "cohttp" {= version} + "async_kernel" {>= "v0.16.0"} + "async_unix" {>= "v0.16.0"} + "async" {>= "v0.16.0"} + "base" {>= "v0.16.0"} + "core" {with-test} + "core_unix" {>= "v0.14.0"} + "conduit-async" {>= "1.2.0"} + "magic-mime" + "mirage-crypto" {with-test} + "logs" + "fmt" {>= "0.8.2"} + "sexplib0" + "ppx_sexp_conv" {>= "v0.13.0"} + "ounit" {with-test} + "uri" {>= "2.0.0"} + "uri-sexp" + "ipaddr" + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-async/runtest" {with-test} + "@doc" {with-doc} + ] +] +available: arch != "s390x" +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-curl-async/cohttp-curl-async.6.0.0~alpha2/opam b/packages/cohttp-curl-async/cohttp-curl-async.6.0.0~alpha2/opam new file mode 100644 index 00000000000..a0bb2d67817 --- /dev/null +++ b/packages/cohttp-curl-async/cohttp-curl-async.6.0.0~alpha2/opam @@ -0,0 +1,61 @@ +opam-version: "2.0" +synopsis: "Cohttp client using Curl & Async as the backend" +description: """ +An HTTP client that relies on Curl + Async for the backend. Does not require +conduit for SSL.""" +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.0"} + "ocurl" + "http" {= version} + "stringext" + "cohttp-curl" {= version} + "core" {>= "v0.16.0"} + "core_unix" {>= "v0.14.0"} + "async_kernel" + "async_unix" + "cohttp-async" {with-test & = version} + "uri" {with-test & >= "4.2.0"} + "fmt" {with-test} + "ounit" {with-test} + "alcotest" {with-test} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-curl-async/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-curl-lwt/cohttp-curl-lwt.6.0.0~alpha2/opam b/packages/cohttp-curl-lwt/cohttp-curl-lwt.6.0.0~alpha2/opam new file mode 100644 index 00000000000..ebcefe57405 --- /dev/null +++ b/packages/cohttp-curl-lwt/cohttp-curl-lwt.6.0.0~alpha2/opam @@ -0,0 +1,61 @@ +opam-version: "2.0" +synopsis: "Cohttp client using Curl & Lwt as the backend" +description: """ +An HTTP client that relies on Curl + Lwt for the backend. Does not require +conduit for SSL.""" +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.0"} + "ocaml" {>= "4.08"} + "ocurl" + "http" {= version} + "cohttp-curl" {= version} + "stringext" + "lwt" {>= "5.3.0"} + "uri" {with-test & >= "4.2.0"} + "alcotest" {with-test} + "cohttp-lwt-unix" {with-test & = version} + "cohttp" {with-test & = version} + "cohttp-lwt" {with-test & = version} + "conduit-lwt" {with-test} + "ounit" {with-test} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-curl-lwt/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-curl/cohttp-curl.6.0.0~alpha2/opam b/packages/cohttp-curl/cohttp-curl.6.0.0~alpha2/opam new file mode 100644 index 00000000000..440662c5a49 --- /dev/null +++ b/packages/cohttp-curl/cohttp-curl.6.0.0~alpha2/opam @@ -0,0 +1,50 @@ +opam-version: "2.0" +synopsis: "Shared code between the individual cohttp-curl clients" +description: "Use cohttp-curl-lwt or cohttp-curl-async" +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.0"} + "ocaml" {>= "4.08"} + "ocurl" + "http" {= version} + "stringext" + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-curl/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-eio/cohttp-eio.6.0.0~alpha2/opam b/packages/cohttp-eio/cohttp-eio.6.0.0~alpha2/opam new file mode 100644 index 00000000000..a407b19f110 --- /dev/null +++ b/packages/cohttp-eio/cohttp-eio.6.0.0~alpha2/opam @@ -0,0 +1,55 @@ +opam-version: "2.0" +synopsis: "CoHTTP implementation with eio backend" +description: + "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." +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.0"} + "base-domains" + "eio" {>= "0.10"} + "eio_main" {with-test} + "mdx" {with-test} + "uri" {with-test} + "fmt" + "ptime" + "http" {= version} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-eio/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-lwt-jsoo/cohttp-lwt-jsoo.6.0.0~alpha2/opam b/packages/cohttp-lwt-jsoo/cohttp-lwt-jsoo.6.0.0~alpha2/opam new file mode 100644 index 00000000000..3b42c916d2f --- /dev/null +++ b/packages/cohttp-lwt-jsoo/cohttp-lwt-jsoo.6.0.0~alpha2/opam @@ -0,0 +1,62 @@ +opam-version: "2.0" +synopsis: "CoHTTP implementation for the Js_of_ocaml JavaScript compiler" +description: """ +An implementation of an HTTP client for JavaScript, but using the +CoHTTP types. This lets you build HTTP clients that can compile +natively (using one of the other Cohttp backends such as `cohttp-lwt-unix`) +and also to native JavaScript via js_of_ocaml. +""" +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.0"} + "ocaml" {>= "4.08"} + "http" {= version} + "cohttp" {= version} + "cohttp-lwt" {= version} + "logs" + "lwt" {>= "3.0.0"} + "lwt_ppx" {with-test} + "conf-npm" {with-test} + "js_of_ocaml" {>= "3.3.0"} + "js_of_ocaml-ppx" {>= "3.3.0"} + "js_of_ocaml-lwt" {>= "3.5.0"} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-lwt-jsoo/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-lwt-unix/cohttp-lwt-unix.6.0.0~alpha2/opam b/packages/cohttp-lwt-unix/cohttp-lwt-unix.6.0.0~alpha2/opam new file mode 100644 index 00000000000..c04b83790ad --- /dev/null +++ b/packages/cohttp-lwt-unix/cohttp-lwt-unix.6.0.0~alpha2/opam @@ -0,0 +1,69 @@ +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. + +Although the name implies that this only works under Unix, it +should also be fine under Windows too. +""" +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.0"} + "ocaml" {>= "4.08"} + "http" {= version} + "cohttp" {= version} + "cohttp-lwt" {= version} + "cmdliner" {>= "1.1.0"} + "lwt" {>= "3.0.0"} + "conduit-lwt" {>= "5.0.0"} + "conduit-lwt-unix" {>= "5.0.0"} + "fmt" {>= "0.8.2"} + "base-unix" + "ppx_sexp_conv" {>= "v0.13.0"} + "magic-mime" + "logs" + "ounit" {with-test} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-lwt-unix/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-lwt/cohttp-lwt.6.0.0~alpha2/opam b/packages/cohttp-lwt/cohttp-lwt.6.0.0~alpha2/opam new file mode 100644 index 00000000000..efcf700a5ca --- /dev/null +++ b/packages/cohttp-lwt/cohttp-lwt.6.0.0~alpha2/opam @@ -0,0 +1,61 @@ +opam-version: "2.0" +synopsis: "CoHTTP implementation using the Lwt concurrency library" +description: """ +This is a portable implementation of HTTP that uses the Lwt concurrency library +to multiplex IO. It implements as much of the logic in an OS-independent way +as possible, so that more specialised modules can be tailored for different +targets. For example, you can install `cohttp-lwt-unix` or `cohttp-lwt-jsoo` +for a Unix or JavaScript backend, or `cohttp-mirage` for the MirageOS unikernel +version of the library. All of these implementations share the same IO logic +from this module.""" +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.0"} + "ocaml" {>= "4.08"} + "http" {= version} + "cohttp" {= version} + "lwt" {>= "2.5.0"} + "sexplib0" + "ppx_sexp_conv" {>= "v0.13.0"} + "logs" + "uri" {>= "2.0.0"} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-lwt/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-mirage/cohttp-mirage.6.0.0~alpha2/opam b/packages/cohttp-mirage/cohttp-mirage.6.0.0~alpha2/opam new file mode 100644 index 00000000000..b6865a65cd2 --- /dev/null +++ b/packages/cohttp-mirage/cohttp-mirage.6.0.0~alpha2/opam @@ -0,0 +1,69 @@ +opam-version: "2.0" +synopsis: "CoHTTP implementation for the MirageOS unikernel" +description: """ +This HTTP implementation uses the Cohttp portable implementaiton +along with the Lwt threading library in order to provide a +`Cohttp_mirage` functor that can be used in MirageOS unikernels +to build very small and efficient HTTP clients and servers +without having a hard dependency on an underlying operating +system. + +Please see for a self-hosted explanation +and instructions on how to use this library.""" +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.0"} + "ocaml" {>= "4.08"} + "mirage-flow" {>= "2.0.0"} + "mirage-channel" {>= "4.0.0"} + "conduit" {>= "2.0.2"} + "conduit-mirage" {>= "2.3.0"} + "mirage-kv" {>= "3.0.0"} + "lwt" {>= "2.4.3"} + "cohttp-lwt" {= version} + "cstruct" {>= "6.0.0"} + "fmt" {>= "0.8.7"} + "astring" + "magic-mime" + "ppx_sexp_conv" {>= "v0.13.0"} + "cohttp" {= version} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-mirage/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-server-lwt-unix/cohttp-server-lwt-unix.6.0.0~alpha2/opam b/packages/cohttp-server-lwt-unix/cohttp-server-lwt-unix.6.0.0~alpha2/opam new file mode 100644 index 00000000000..24d6f9df45b --- /dev/null +++ b/packages/cohttp-server-lwt-unix/cohttp-server-lwt-unix.6.0.0~alpha2/opam @@ -0,0 +1,56 @@ +opam-version: "2.0" +synopsis: "Lightweight Cohttp + Lwt based HTTP server" +description: """ +This server implementation is faster than cohttp-lwt-unix and is independent of +conduit. +""" +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.0"} + "ocaml" {>= "4.08"} + "http" {= version} + "lwt" {>= "5.5.0"} + "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" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-server-lwt-unix/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp-top/cohttp-top.6.0.0~alpha2/opam b/packages/cohttp-top/cohttp-top.6.0.0~alpha2/opam new file mode 100644 index 00000000000..29333a719b9 --- /dev/null +++ b/packages/cohttp-top/cohttp-top.6.0.0~alpha2/opam @@ -0,0 +1,53 @@ +opam-version: "2.0" +synopsis: "CoHTTP toplevel pretty printers for HTTP types" +description: """ +This library installs toplevel prettyprinters for CoHTTP +types such as the `Request`, `Response` and `Types` modules. +Once this library has been loaded, you can directly see the +values of those types in toplevels such as `utop` or `ocaml`. +""" +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.0"} + "ocaml" {>= "4.08"} + "cohttp" {= version} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp-top/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/cohttp/cohttp.6.0.0~alpha2/opam b/packages/cohttp/cohttp.6.0.0~alpha2/opam new file mode 100644 index 00000000000..ce102ecca35 --- /dev/null +++ b/packages/cohttp/cohttp.6.0.0~alpha2/opam @@ -0,0 +1,73 @@ +opam-version: "2.0" +synopsis: "An OCaml library for HTTP clients and servers" +description: """ +Cohttp is an OCaml library for creating HTTP daemons. It has a portable +HTTP parser, and implementations using various asynchronous programming +libraries. + +See the cohttp-async, cohttp-lwt, cohttp-lwt-unix, cohttp-lwt-jsoo and +cohttp-mirage libraries for concrete implementations for particular +targets. + +You can implement other targets using the parser very easily. Look at the `IO` +signature in `lib/s.mli` and implement that in the desired backend. + +You can activate some runtime debugging by setting `COHTTP_DEBUG` to any +value, and all requests and responses will be written to stderr. Further +debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG` +to any value. +""" +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.0"} + "http" {= version} + "ocaml" {>= "4.08"} + "re" {>= "1.9.0"} + "uri" {>= "2.0.0"} + "uri-sexp" + "sexplib0" + "ppx_sexp_conv" {>= "v0.13.0"} + "stringext" + "base64" {>= "3.1.0"} + "fmt" {with-test} + "alcotest" {with-test} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@cohttp/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269" diff --git a/packages/http/http.6.0.0~alpha2/opam b/packages/http/http.6.0.0~alpha2/opam new file mode 100644 index 00000000000..2b052bcbc65 --- /dev/null +++ b/packages/http/http.6.0.0~alpha2/opam @@ -0,0 +1,59 @@ +opam-version: "2.0" +synopsis: "Type definitions of HTTP essentials" +description: """ +This package contains essential type definitions used in Cohttp. It is designed +to have no dependencies and make it easy for other packages to easily +interoperate with Cohttp.""" +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.0"} + "ocaml" {>= "4.08"} + "ppx_expect" {with-test} + "alcotest" {with-test} + "base_quickcheck" {with-test} + "ppx_assert" {with-test} + "ppx_sexp_conv" {with-test} + "ppx_compare" {with-test} + "ppx_here" {with-test} + "crowbar" {with-test & >= "0.2"} + "sexplib0" {with-test} + "odoc" {with-doc} +] +dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" +build: [ + ["dune" "subst"] {dev} + [ + "dune" + "build" + "-p" + name + "-j" + jobs + "@install" + "@http/runtest" {with-test} + "@doc" {with-doc} + ] +] +url { + src: + "https://github.com/mirage/ocaml-cohttp/releases/download/v6.0.0_alpha2/cohttp-6.0.0.alpha2.tbz" + checksum: [ + "sha256=2f00d14832c1c13427c12007e5b45a8f121e06e46d556a76904359ab26c0cff6" + "sha512=342034580418d55e7b9657c09cf187c415e562fc041e8f5eaa489cfae08f60b98afcddbc77632b479755cdfb2d30b5653ed5250b5b7dbde01f0be93f4e828bcc" + ] +} +x-commit-hash: "bc9c78549a32d49be5fb51589331da51e86de269"