cohttp-lwt-unixversion
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:
Cohttp_lwt_unix
uses the Lwt library, and specifically the UNIX bindings.Cohttp_async
uses the Async library.Cohttp_lwt
exposes an OS-independent Lwt interface, which is used by the Mirage interface to generate standalone microkernels (see the mirage-http repository).Cohttp_lwt_xhr
compiles to a JavaScript module that maps the Cohttp calls to XMLHTTPRequests. This is used to compile OCaml libraries like the GitHub bindings to JavaScript and still run efficiently.
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 |
---|---|
Authors | Anil Madhavapeddy, Stefano Zacchiroli, David Sheets, Thomas Gazagnaire, David Scott, Rudi Grinberg and Andy Ray |
License | ISC |
Published | |
Homepage | https://github.com/mirage/ocaml-cohttp |
Issue Tracker | https://github.com/mirage/ocaml-cohttp/issues |
Maintainer | anil@recoil.org |
Dependencies |
|
Conflicts |
|
Source [http] | https://github.com/mirage/ocaml-cohttp/releases/download/v0.99.0/cohttp-0.99.0.tbz sha256=ad79462819b141e6054ae32560a16fcdfd93a1ab0c0245f801b3791fdbbe2f2e md5=a789a9ed492005257bdb217e2248da0d |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/cohttp-lwt-unix/cohttp-lwt-unix.0.99.0/opam |
Required by
- aws-lwt
- aws-s3-lwt<4.0.0
- awsm-lwt
- azure-cosmos-db
- bitcoin-cohttp-lwt
- calculon-web<0.5
- canary
- comby
- comby-semantic
- cowablogawith-test & >=0.4.0
- curlywith-test
- current_github<0.5
- current_slack<0.4
- datakit-ci=0.12.0
- dblp-api
- dropbox_lwt_unix
- equinoxe-cohttp
- git-cohttp-unix
- git-unixwith-test & (=1.11.2 | >=3.4.0 & <3.7.0)
- github-hooks-unix
- github-unix>=3.0.1 & <4.4.0
- graphql-cohttpwith-test & >=0.13.0
- graphql-lwt=0.3.0
- grpc-examples
- hockmd
- horned_worm<0.3.1
- influxdb-lwt
- ip2location
- ip2locationio
- ip2whois
- irmin-cli
- irmin-git>=3.4.0
- irmin-graphql>=2.2.0
- irmin-httpwith-test & >=2.6.0 & <3.4.0
- irmin-server
- irmin-unix>=2.3.0
- js_of_ocaml-toplevelwith-test & >=3.10.0
- kappa-server
- ketrew>=3.2.1
- links>=0.9
- mechaml>=1.0.0
- nsq>=0.2.4
- ocamlapi_lwt_unix
- ocluster<0.2.1
- ocsigen-start>=2.2.2
- ocsigenserver>=3.0.0 & <5.1.0
- oframl
- opam2web>=2.0
- opentelemetry-client-cohttp-lwt
- opentelemetry-lwtwith-test
- opium>=0.16.0 & <0.19.0
- oraft<0.3.0
- ozulip
- prof_spacetime>=0.2.0
- prometheus-app>=0.4 & <1.2
- prometheus-liquidsoap
- quests
- smtmlwith-dev-setup & >=0.3.1
- socialpeek
- spotify_ml>=push
- terminus-cohttp
- textrazor
- tldr
- wcs>=2017-05-26.01
- wcs-api<2017-05-26.03
- wcs-lib<2017-05-26.01
- websocket-lwt<2.11
- yurt=0.3
- zeit