-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
16 changed files
with
250 additions
and
270 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
authors: [ | ||
"Anil Madhavapeddy" | ||
"Stefano Zacchiroli" | ||
"David Sheets" | ||
"Thomas Gazagnaire" | ||
"David Scott" | ||
"Rudi Grinberg" | ||
"Andy Ray" | ||
] | ||
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. | ||
""" | ||
license: "ISC" | ||
tags: ["org:mirage" "org:xapi-project"] | ||
homepage: "https://github.com/mirage/ocaml-cohttp" | ||
doc: "https://mirage.github.io/ocaml-cohttp/" | ||
bug-reports: "https://github.com/mirage/ocaml-cohttp/issues" | ||
depends: [ | ||
"ocaml" {>= "4.04.1"} | ||
"dune" {build & >= "1.1.0"} | ||
"async_kernel" {>= "v0.11.0" & < "v0.12"} | ||
"async_unix" {>= "v0.11.0" & < "v0.12"} | ||
"async_extra" {>= "v0.11.0" & < "v0.12"} | ||
"base" {>= "v0.11.0" & < "v0.12"} | ||
"core" {with-test & < "v0.12"} | ||
"cohttp" | ||
"conduit-async" {>="1.2.0"} | ||
"magic-mime" | ||
"logs" | ||
"fmt" {>= "0.8.2"} | ||
"sexplib0" {< "v0.12"} | ||
"ppx_sexp_conv" {>= "v0.9.0" & < "v0.12"} | ||
"ounit" {with-test} | ||
"uri" {>= "2.0.0"} | ||
] | ||
build: [ | ||
["dune" "subst"] {pinned} | ||
["dune" "build" "-p" name "-j" jobs] | ||
["dune" "runtest" "-p" name "-j" jobs] {with-test} | ||
] | ||
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" | ||
url { | ||
src: | ||
"https://github.com/mirage/ocaml-cohttp/releases/download/v2.0.0/cohttp-v2.0.0.tbz" | ||
checksum: "md5=c354599fdb4f2625b6510182de0fc86b" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
opam-version: "2.0" | ||
maintainer: "[email protected]" | ||
authors: [ | ||
"Anil Madhavapeddy" | ||
"Stefano Zacchiroli" | ||
"David Sheets" | ||
"Thomas Gazagnaire" | ||
"David Scott" | ||
"Rudi Grinberg" | ||
"Andy Ray" | ||
] | ||
synopsis: "An OCaml library for HTTP clients and servers" | ||
description: """ | ||
[![Join the chat at https://gitter.im/mirage/ocaml-cohttp](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/mirage/ocaml-cohttp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
|
||
Cohttp is an OCaml library for creating HTTP daemons. It has a portable | ||
HTTP parser, and implementations using various asynchronous programming | ||
libraries: | ||
libraries. | ||
|
||
* `Cohttp_lwt_unix` uses the [Lwt](https://ocsigen.org/lwt/) library, and | ||
specifically the UNIX bindings. | ||
* `Cohttp_async` uses the [Async](https://realworldocaml.org/v1/en/html/concurrent-programming-with-async.html) | ||
library. | ||
* `Cohttp_lwt` exposes an OS-independent Lwt interface, which is used | ||
by the [Mirage](https://mirage.io/) interface to generate standalone | ||
microkernels (use the cohttp-mirage subpackage). | ||
* `Cohttp_lwt_xhr` compiles to a JavaScript module that maps the Cohttp | ||
calls to XMLHTTPRequests. This is used to compile OCaml libraries like | ||
the GitHub bindings to JavaScript and still run efficiently. | ||
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. | ||
|
@@ -25,16 +26,6 @@ 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: "[email protected]" | ||
authors: [ | ||
"Anil Madhavapeddy" | ||
"Stefano Zacchiroli" | ||
"David Sheets" | ||
"Thomas Gazagnaire" | ||
"David Scott" | ||
"Rudi Grinberg" | ||
"Andy Ray" | ||
] | ||
license: "ISC" | ||
tags: ["org:mirage" "org:xapi-project"] | ||
homepage: "https://github.com/mirage/ocaml-cohttp" | ||
|
@@ -50,7 +41,7 @@ depends: [ | |
"ppx_fields_conv" {>= "v0.9.0" & < "v0.12"} | ||
"ppx_sexp_conv" {>= "v0.9.0" & < "v0.12"} | ||
"stringext" | ||
"base64" {>= "2.0.0" & < "3.0.0"} | ||
"base64" {>= "3.1.0"} | ||
"fmt" {with-test} | ||
"jsonm" {build} | ||
"alcotest" {with-test} | ||
|
@@ -63,6 +54,6 @@ build: [ | |
dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" | ||
url { | ||
src: | ||
"https://github.com/mirage/ocaml-cohttp/releases/download/v1.2.0/cohttp-v1.2.0.tbz" | ||
checksum: "md5=7aa3d4582848afff9a62f866b23173e1" | ||
"https://github.com/mirage/ocaml-cohttp/releases/download/v2.0.0/cohttp-v2.0.0.tbz" | ||
checksum: "md5=c354599fdb4f2625b6510182de0fc86b" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters