this repo has no description
1opam-version: "2.0" 2maintainer: "anil@recoil.org" 3authors: [ 4 "Anil Madhavapeddy" 5 "Thomas Gazagnaire" 6] 7homepage: "https://github.com/mirage/ocaml-cohttp" 8bug-reports: "https://github.com/mirage/ocaml-cohttp/issues" 9license: "ISC" 10tags: ["org:mirage" "org:xapi-project"] 11dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" 12build: [ 13 ["jbuilder" "subst" "-p" name] {dev} 14 ["jbuilder" "build" "-p" name "-j" jobs] 15 ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test} 16] 17depends: [ 18 "ocaml" {>= "4.03.0"} 19 "jbuilder" {>= "1.0+beta10"} 20 "result" 21 "mirage-flow-lwt" {>= "1.2.0"} 22 "mirage-channel-lwt" {>= "3.0.0"} 23 "mirage-kv-lwt" {<"2.0.0"} 24 "conduit" {>= "0.99" & < "2.3.0"} 25 "conduit-lwt" {>= "0.99" & < "2.3.0"} 26 "mirage-conduit" {>= "3.0.0"} 27 "lwt" {>= "2.4.3"} 28 "cohttp" {>= "1.0.0" & < "2.2.0"} 29 "cohttp-lwt" {>= "1.0.0" & < "2.2.0"} 30 "astring" 31 "magic-mime" 32 "sexplib" 33] 34synopsis: "An OCaml library for HTTP clients and servers" 35description: """ 36[![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) 37 38Cohttp is an OCaml library for creating HTTP daemons. It has a portable 39HTTP parser, and implementations using various asynchronous programming 40libraries: 41 42* `Cohttp_lwt_unix` uses the [Lwt](https://ocsigen.org/lwt/) library, and 43 specifically the UNIX bindings. 44* `Cohttp_async` uses the [Async](https://realworldocaml.org/v1/en/html/concurrent-programming-with-async.html) 45 library. 46* `Cohttp_lwt` exposes an OS-independent Lwt interface, which is used 47 by the [Mirage](https://mirage.io/) interface to generate standalone 48 microkernels (use the cohttp-mirage subpackage). 49* `Cohttp_lwt_xhr` compiles to a JavaScript module that maps the Cohttp 50 calls to XMLHTTPRequests. This is used to compile OCaml libraries like 51 the GitHub bindings to JavaScript and still run efficiently. 52 53You can implement other targets using the parser very easily. Look at the `IO` 54signature in `lib/s.mli` and implement that in the desired backend. 55 56You can activate some runtime debugging by setting `COHTTP_DEBUG` to any 57value, and all requests and responses will be written to stderr. Further 58debugging of the connection layer can be obtained by setting `CONDUIT_DEBUG` 59to any value.""" 60url { 61 src: 62 "https://github.com/mirage/ocaml-cohttp/releases/download/v1.0.2/cohttp-1.0.2.tbz" 63 checksum: [ 64 "sha256=64a7249ef1568006108280343b416dd2b5807af603472246c24ecf43b1a207f5" 65 "md5=d0a46e32911773862e1a9b420c0058bc" 66 ] 67}