cohttpversion

An OCaml library for HTTP clients and servers

Cohttp is an OCaml library for creating HTTP daemons. It has a portable HTTP parser, and implementations using various asynchronous programming libraries.

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.

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.

Tags org:mirage org:xapi-project
AuthorsAnil Madhavapeddy, Stefano Zacchiroli, David Sheets, Thomas Gazagnaire, David Scott, Rudi Grinberg and Andy Ray
LicenseISC
Published
Homepagehttps://github.com/mirage/ocaml-cohttp
Issue Trackerhttps://github.com/mirage/ocaml-cohttp/issues
Maintaineranil@recoil.org
Dependencies
Source [http] https://github.com/mirage/ocaml-cohttp/releases/download/v2.5.8/cohttp-2.5.8.tbz
sha256=2722477d1f5bb09e841debc125c30ff44f1b20cf8894b68cb48f2b6de092d25a
sha512=ce934a24c0e1eaf5dc674927b45277d461a13757d4c165a4a11811f9eb7b11b78b4560792ca430734d4e3a5b8791eee887d4eab2a0e9e30aa4a5864e833dd768
Edithttps://github.com/ocaml/opam-repository/tree/master/packages/cohttp/cohttp.2.5.8/opam
Required by
Optionally used by