Skip to content
Very lightweight HTTP server using Lwt or Async
OCaml JavaScript Other
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
async
cohttp
lib_test
lwt
.gitignore
CHANGES
LICENSE
Makefile
README.md
TODO.md
_oasis
_tags
cohttp.obuild
myocamlbuild.ml
setup.ml

README.md

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

  • Cohttp_lwt_unix uses the Lwt library, and specifically the UNIX bindings.
  • Cohttp_async uses the Async library from Jane Street.
  • Cohttp_lwt_mirage uses the Mirage interface to generate standalone microkernels.

You can implement other targets using parser very easily. Look at the lib/IO.ml signature, 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.

For build requirements, please see the _oasis file, or use OPAM to install it from http://github.com/OCamlPro/opam

Something went wrong with that request. Please try again.