this repo has no description
1opam-version: "2.0"
2maintainer: "anil@recoil.org"
3authors: [
4 "Anil Madhavapeddy"
5 "Stefano Zacchiroli"
6 "David Sheets"
7 "Thomas Gazagnaire"
8 "David Scott"
9 "Rudi Grinberg"
10 "Andy Ray"
11]
12license: "ISC"
13tags: ["org:mirage" "org:xapi-project"]
14homepage: "https://github.com/mirage/ocaml-cohttp"
15bug-reports: "https://github.com/mirage/ocaml-cohttp/issues"
16depends: [
17 "ocaml" {>= "4.03.0"}
18 "dune" {>= "1.1.0"}
19 "cohttp" {>= "1.1.0" & < "1.2.0"}
20 "lwt"
21 "sexplib" {< "v0.15"}
22 "ppx_sexp_conv" {>= "v0.9.0"}
23]
24conflicts: [
25 "lwt" {< "2.5.0"}
26]
27build: [
28 ["dune" "subst"] {dev}
29 ["dune" "build" "-p" name "-j" jobs]
30 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
31]
32dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
33synopsis: "An OCaml library for HTTP clients and servers"
34description: """
35[](https://gitter.im/mirage/ocaml-cohttp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
36
37Cohttp is an OCaml library for creating HTTP daemons. It has a portable
38HTTP parser, and implementations using various asynchronous programming
39libraries:
40
41* `Cohttp_lwt_unix` uses the [Lwt](https://ocsigen.org/lwt/) library, and
42 specifically the UNIX bindings.
43* `Cohttp_async` uses the [Async](https://realworldocaml.org/v1/en/html/concurrent-programming-with-async.html)
44 library.
45* `Cohttp_lwt` exposes an OS-independent Lwt interface, which is used
46 by the [Mirage](https://mirage.io/) interface to generate standalone
47 microkernels (use the cohttp-mirage subpackage).
48* `Cohttp_lwt_xhr` compiles to a JavaScript module that maps the Cohttp
49 calls to XMLHTTPRequests. This is used to compile OCaml libraries like
50 the GitHub bindings to JavaScript and still run efficiently.
51
52You can implement other targets using the parser very easily. Look at the `IO`
53signature in `lib/s.mli` and implement that in the desired backend.
54
55You can activate some runtime debugging by setting `COHTTP_DEBUG` to any
56value, and all requests and responses will be written to stderr. Further
57debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG`
58to any value."""
59url {
60 src: "https://github.com/mirage/ocaml-cohttp/archive/v1.1.1.tar.gz"
61 checksum: [
62 "md5=8ad6bb9dffd346bd88e556fc3cffafae"
63 "sha512=a5f7275c22866d24aa8e81687f7bad52e75872d655816b514996335053b5a2de9cc34f68bd077ad4059ff16b6ed3e76c02ef7f7b2e699472e42689643ade89f1"
64 ]
65}