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] 12homepage: "https://github.com/mirage/ocaml-cohttp" 13bug-reports: "https://github.com/mirage/ocaml-cohttp/issues" 14license: "ISC" 15tags: ["org:mirage" "org:xapi-project"] 16dev-repo: "git+https://github.com/mirage/ocaml-cohttp.git" 17build: [ 18 ["jbuilder" "subst" "-p" name] {dev} 19 ["jbuilder" "build" "-p" name "-j" jobs] 20 ["jbuilder" "runtest" "-p" name "-j" jobs] {with-test} 21] 22depends: [ 23 "ocaml" {>= "4.03.0" & < "5.0"} 24 "base-bytes" 25 "jbuilder" {>= "1.0+beta10"} 26 "re" 27 "uri" {>= "1.9.0" & < "2.0.0"} 28 "fieldslib" 29 "sexplib" 30 "ppx_type_conv" {build & >= "v0.9.1"} 31 "ppx_fields_conv" {>= "v0.9.0"} 32 "ppx_sexp_conv" {>= "v0.9.0"} 33 "stringext" 34 "base64" {>= "2.0.0" & < "3.0.0"} 35 "fmt" {with-test} 36 "jsonm" {build} 37 "alcotest" {with-test} 38] 39synopsis: "An OCaml library for HTTP clients and servers" 40description: """ 41[![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) 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: 67 "https://github.com/mirage/ocaml-cohttp/releases/download/v1.0.2/cohttp-1.0.2.tbz" 68 checksum: [ 69 "sha256=64a7249ef1568006108280343b416dd2b5807af603472246c24ecf43b1a207f5" 70 "md5=d0a46e32911773862e1a9b420c0058bc" 71 ] 72}