package cohttp-lwt-unix

  1. Overview
  2. No Docs
An OCaml library for HTTP clients and servers

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-0.99.0.tbz
sha256=ad79462819b141e6054ae32560a16fcdfd93a1ab0c0245f801b3791fdbbe2f2e
md5=a789a9ed492005257bdb217e2248da0d

Description

Join the chat at https://gitter.im/mirage/ocaml-cohttp

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

Published: 25 Jul 2017

Dependencies (9)

  1. base-unix
  2. lwt >= "3.0.0" & < "4.0.0"
  3. cohttp-lwt >= "0.99" & < "1.0"
  4. fmt
  5. logs
  6. cmdliner
  7. conduit-lwt-unix < "2.0.0"
  8. jbuilder >= "1.0+beta10"
  9. ocaml >= "4.03.0"

Dev Dependencies (1)

  1. ounit with-test

Used by (69)

  1. aws-lwt
  2. aws-s3-lwt < "4.0.0"
  3. awsm-lwt
  4. azure-cosmos-db
  5. bitcoin-cohttp-lwt
  6. calculon-web < "0.5"
  7. canary
  8. comby
  9. comby-semantic
  10. cowabloga >= "0.4.0"
  11. curly
  12. current_github < "0.5"
  13. current_slack < "0.4"
  14. datakit-ci = "0.12.0"
  15. dblp-api
  16. dropbox_lwt_unix
  17. equinoxe-cohttp
  18. git-cohttp-unix
  19. git-unix = "1.11.2" | >= "3.4.0" & < "3.7.0"
  20. github-hooks-unix
  21. github-unix >= "3.0.1" & < "4.4.0"
  22. graphql-cohttp >= "0.13.0"
  23. graphql-lwt = "0.3.0"
  24. grpc-examples
  25. hockmd
  26. horned_worm < "0.3.1"
  27. influxdb-lwt
  28. ip2location
  29. ip2locationio
  30. ip2whois
  31. irmin-cli
  32. irmin-git >= "3.4.0"
  33. irmin-graphql >= "2.2.0"
  34. irmin-http >= "2.6.0" & < "3.4.0"
  35. irmin-server
  36. irmin-unix >= "2.3.0"
  37. js_of_ocaml-toplevel >= "3.10.0"
  38. kappa-server
  39. ketrew >= "3.2.1"
  40. links >= "0.9"
  41. mechaml >= "1.0.0"
  42. nsq >= "0.2.4"
  43. ocamlapi_lwt_unix
  44. ocluster < "0.2.1"
  45. ocsigen-start >= "2.2.2"
  46. ocsigenserver >= "3.0.0" & < "5.1.0"
  47. oframl
  48. opam2web >= "2.0"
  49. opentelemetry-client-cohttp-lwt
  50. opentelemetry-lwt
  51. opium >= "0.16.0" & < "0.19.0"
  52. oraft < "0.3.0"
  53. ozulip
  54. prof_spacetime >= "0.2.0"
  55. prometheus-app >= "0.4" & < "1.2"
  56. prometheus-liquidsoap
  57. quests
  58. smtml >= "0.3.1"
  59. socialpeek
  60. spotify_ml >= "push"
  61. terminus-cohttp
  62. textrazor
  63. tldr
  64. wcs >= "2017-05-26.01"
  65. wcs-api < "2017-05-26.03"
  66. wcs-lib < "2017-05-26.01"
  67. websocket-lwt < "2.11"
  68. yurt = "0.3"
  69. zeit

Conflicts (1)

  1. lwt < "2.5.0"
OCaml

Innovation. Community. Security.