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 (use the cohttp-mirage subpackage).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/v1.0.2/cohttp-1.0.2.tbz sha256=64a7249ef1568006108280343b416dd2b5807af603472246c24ecf43b1a207f5 md5=d0a46e32911773862e1a9b420c0058bc |
Edit | https://github.com/ocaml/opam-repository/tree/master/packages/cohttp-lwt-unix/cohttp-lwt-unix.1.0.2/opam |
Required by
- aws-lwt
- aws-s3-lwt<4.0.0
- awsm-lwt
- azure-cosmos-db
- bap-server>=0.2.0
- 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.1
- dblp-api
- dropbox_lwt_unix
- equinoxe-cohttp
- git-cohttp-unix
- git-unixwith-test & (>=1.11.4 & <3.0.0 | >=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.6.0 & <0.8.0
- grpc-examples
- hockmd
- influxdb-lwt
- ip2location
- ip2locationio
- ip2whois
- irmin-cli
- irmin-git>=3.4.0
- irmin-graphql>=2.2.0
- irmin-http>=2.6.0
- irmin-server
- irmin-unix>=2.3.0
- js_of_ocaml-toplevelwith-test & >=3.10.0
- kappa-server
- kubecaml
- learn-ocaml<0.13.0
- learn-ocaml-client<0.13.0
- letsencrypt<0.3.0
- letsencrypt-app
- 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
- openai-gym
- opentelemetry-client-cohttp-lwt
- opentelemetry-lwtwith-test
- opium>=0.16.0 & <0.19.0
- oraft<0.3.0
- ozulip
- prof_spacetime>=0.3.0
- prometheus-app>=0.4 & <1.2
- prometheus-liquidsoap
- quests
- resto-cohttp-server<0.6
- slacko>=0.14.1
- smtmlwith-dev-setup & >=0.3.1
- spotify-web-api>=0.2.1
- spotify_ml>=push
- telegraml>=2.2.0
- terminus-cohttp
- textrazor
- tezos-rpc-http-client-unix<9.0
- tldr
- wcs>=2017-05-26.01
- wcs-api>=2017-05-26.03
- wcs-lib>=2017-05-26.05
- websocket-lwt>=2.11
- websocket-lwt-unix<2.14
- yurt>=0.4
- zeit