package cohttp-async
An OCaml library for HTTP clients and servers
Install
Authors
Maintainers
Sources
v1.1.1.tar.gz
md5=8ad6bb9dffd346bd88e556fc3cffafae
sha512=a5f7275c22866d24aa8e81687f7bad52e75872d655816b514996335053b5a2de9cc34f68bd077ad4059ff16b6ed3e76c02ef7f7b2e699472e42689643ade89f1
Description
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.
Dependencies (14)
-
uri
< "2.0.0"
-
ppx_sexp_conv
>= "v0.9.0" & < "v0.12"
-
sexplib
< "v0.12"
-
fmt
>= "0.8.2"
- logs
- magic-mime
-
conduit-async
>= "1.0.3"
- cohttp
-
base
>= "v0.11.0" & < "v0.12"
-
async_extra
>= "v0.11.0" & < "v0.12"
-
async_unix
>= "v0.11.0" & < "v0.12"
-
async_kernel
>= "v0.11.0" & < "v0.12"
-
dune
>= "1.1.0"
-
ocaml
>= "4.04.1"
Used by (11)
- aws-async
-
aws-s3
>= "1.1.0" & < "2.0.0"
-
aws-s3-async
< "4.0.0"
- awsm-async
-
frenetic
>= "5.0.0" & < "5.0.5"
-
gemini
>= "0.2.0"
-
horned_worm
>= "0.3.2"
- influxdb-async
- ocamlapi_async
- session-cohttp-async
-
websocket-async
< "2.14"
Conflicts
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page