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 "conduit-lwt-unix" {>= "1.0.3" & < "2.0.0"}
20 "cmdliner"
21 "magic-mime"
22 "logs"
23 "fmt" {>= "0.8.2"}
24 "cohttp-lwt" {= "1.1.1"}
25 "lwt" {>= "3.0.0"}
26 "base-unix"
27 "ounit" {with-test}
28]
29conflicts: [
30 "lwt" {< "2.5.0"}
31 "cohttp" {= "1.1.1" & with-test}
32]
33build: [
34 ["dune" "subst"] {dev}
35 ["dune" "build" "-p" name "-j" jobs]
36 ["dune" "runtest" "-p" name "-j" jobs] {with-test}
37]
38dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git"
39synopsis: "An OCaml library for HTTP clients and servers"
40description: """
41[](https://gitter.im/mirage/ocaml-cohttp?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
42
43Cohttp is an OCaml library for creating HTTP daemons. It has a portable
44HTTP parser, and implementations using various asynchronous programming
45libraries:
46
47* `Cohttp_lwt_unix` uses the [Lwt](https://ocsigen.org/lwt/) library, and
48 specifically the UNIX bindings.
49* `Cohttp_async` uses the [Async](https://realworldocaml.org/v1/en/html/concurrent-programming-with-async.html)
50 library.
51* `Cohttp_lwt` exposes an OS-independent Lwt interface, which is used
52 by the [Mirage](https://mirage.io/) interface to generate standalone
53 microkernels (use the cohttp-mirage subpackage).
54* `Cohttp_lwt_xhr` compiles to a JavaScript module that maps the Cohttp
55 calls to XMLHTTPRequests. This is used to compile OCaml libraries like
56 the GitHub bindings to JavaScript and still run efficiently.
57
58You can implement other targets using the parser very easily. Look at the `IO`
59signature in `lib/s.mli` and implement that in the desired backend.
60
61You can activate some runtime debugging by setting `COHTTP_DEBUG` to any
62value, and all requests and responses will be written to stderr. Further
63debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG`
64to any value."""
65url {
66 src: "https://github.com/mirage/ocaml-cohttp/archive/v1.1.1.tar.gz"
67 checksum: [
68 "md5=8ad6bb9dffd346bd88e556fc3cffafae"
69 "sha512=a5f7275c22866d24aa8e81687f7bad52e75872d655816b514996335053b5a2de9cc34f68bd077ad4059ff16b6ed3e76c02ef7f7b2e699472e42689643ade89f1"
70 ]
71}