package cohttp-lwt-unix

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

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-1.0.2.tbz
sha256=64a7249ef1568006108280343b416dd2b5807af603472246c24ecf43b1a207f5
md5=d0a46e32911773862e1a9b420c0058bc

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 (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

Published: 07 Jan 2018

Dependencies (10)

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

Dev Dependencies (1)

  1. ounit with-test

Used by (79)

  1. aws-lwt
  2. aws-s3-lwt < "4.0.0"
  3. awsm-lwt
  4. azure-cosmos-db
  5. bap-server >= "0.2.0"
  6. bitcoin-cohttp-lwt
  7. calculon-web < "0.5"
  8. canary
  9. comby
  10. comby-semantic
  11. cowabloga >= "0.4.0"
  12. curly
  13. current_github < "0.5"
  14. current_slack < "0.4"
  15. datakit-ci >= "0.12.1"
  16. dblp-api
  17. dropbox_lwt_unix
  18. equinoxe-cohttp
  19. git-cohttp-unix
  20. git-unix >= "1.11.4" & < "3.0.0" | >= "3.4.0" & < "3.7.0"
  21. github-hooks-unix
  22. github-unix >= "3.0.1" & < "4.4.0"
  23. graphql-cohttp >= "0.13.0"
  24. graphql-lwt >= "0.6.0" & < "0.8.0"
  25. grpc-examples
  26. hockmd
  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"
  35. irmin-server
  36. irmin-unix >= "2.3.0"
  37. js_of_ocaml-toplevel >= "3.10.0"
  38. kappa-server
  39. kubecaml
  40. learn-ocaml < "0.13.0"
  41. learn-ocaml-client < "0.13.0"
  42. letsencrypt < "0.3.0"
  43. letsencrypt-app
  44. links >= "0.9"
  45. mechaml >= "1.0.0"
  46. nsq >= "0.2.4"
  47. ocamlapi_lwt_unix
  48. ocluster < "0.2.1"
  49. ocsigen-start >= "2.2.2"
  50. ocsigenserver >= "3.0.0" & < "5.1.0"
  51. oframl
  52. opam2web >= "2.0"
  53. openai-gym
  54. opentelemetry-client-cohttp-lwt
  55. opentelemetry-lwt
  56. opium >= "0.16.0" & < "0.19.0"
  57. oraft < "0.3.0"
  58. ozulip
  59. prof_spacetime >= "0.3.0"
  60. prometheus-app >= "0.4" & < "1.2"
  61. prometheus-liquidsoap
  62. quests
  63. resto-cohttp-server < "0.6"
  64. slacko >= "0.14.1"
  65. smtml >= "0.3.1"
  66. spotify-web-api >= "0.2.1"
  67. spotify_ml >= "push"
  68. telegraml >= "2.2.0"
  69. terminus-cohttp
  70. textrazor
  71. tezos-rpc-http-client-unix < "9.0"
  72. tldr
  73. wcs >= "2017-05-26.01"
  74. wcs-api >= "2017-05-26.03"
  75. wcs-lib >= "2017-05-26.05"
  76. websocket-lwt >= "2.11"
  77. websocket-lwt-unix < "2.14"
  78. yurt >= "0.4"
  79. zeit

Conflicts (1)

  1. lwt < "2.5.0"
OCaml

Innovation. Community. Security.