Skip to content

HTTP/1.1 protocol library that supports the Async and Lwt cooperative threading libraries.

License

Notifications You must be signed in to change notification settings

williamleferrand/ocaml-cohttp

 
 

Repository files navigation

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 https://github.com/OCamlPro/opam

About

HTTP/1.1 protocol library that supports the Async and Lwt cooperative threading libraries.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • OCaml 99.8%
  • Shell 0.2%