package cohttp

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

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-6.0.0.alpha1.tbz
sha256=4e3ece8ade6493fe731c0842f519cc0f8f564753d71c985aa4ed6de3f0753646
sha512=5db6f1ffab6fc2ab30baffb1fc82b7f50b11ddb31ec19fc4415dac40f04766f29e816a4cf99ddb152b93c8acbefade7779ad3dc3d092e2f88fa1deea3fc2721a

Description

Cohttp is an OCaml library for creating HTTP daemons. It has a portable HTTP parser, and implementations using various asynchronous programming libraries.

See the cohttp-async, cohttp-lwt, cohttp-lwt-unix, cohttp-lwt-jsoo and cohttp-mirage libraries for concrete implementations for particular targets.

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.

Published: 07 May 2023

Dependencies (10)

  1. base64 >= "3.1.0"
  2. stringext
  3. ppx_sexp_conv >= "v0.13.0"
  4. sexplib0
  5. uri-sexp
  6. uri >= "2.0.0"
  7. re >= "1.9.0"
  8. ocaml >= "4.08"
  9. http = version
  10. dune >= "3.0"

Dev Dependencies (3)

  1. odoc with-doc
  2. alcotest with-test
  3. fmt with-test

Used by (72)

  1. aws-async
  2. aws-lwt
  3. awsm-codegen
  4. azblob
  5. azblob-async
  6. azure-cosmos-db
  7. caldav < "0.2.4"
  8. canary
  9. cca >= "0.6.2"
  10. cohttp-async < "2.2.0" | = "6.0.0~alpha1"
  11. cohttp-curl-lwt = "6.0.0~alpha1"
  12. cohttp-lwt = "6.0.0~alpha1"
  13. cohttp-lwt-jsoo < "2.2.0" | = "6.0.0~alpha1"
  14. cohttp-lwt-unix = "6.0.0~alpha1"
  15. cohttp-mirage = "6.0.0~alpha1"
  16. cohttp-top < "2.2.0" | = "6.0.0~alpha1"
  17. cohttp_async_websocket >= "v0.16.0"
  18. comby-semantic
  19. cowabloga
  20. current_github >= "0.4" & < "0.6"
  21. current_slack = "0.5"
  22. current_web >= "0.4" & < "0.6"
  23. dblp-api
  24. dropbox
  25. frenetic
  26. git < "2.0.0"
  27. git-cohttp
  28. git-cohttp-mirage
  29. git-cohttp-unix
  30. git-paf < "3.5.0"
  31. git-unix < "2.0.0" | >= "2.1.1" & < "3.0.0"
  32. github
  33. github-jsoo >= "4.1.0" & < "4.3.0" | >= "4.4.0"
  34. github-unix >= "4.2.0"
  35. gitlab-jsoo
  36. gitlab-unix
  37. gradescope_submit
  38. graphql-cohttp < "0.9.0"
  39. hockmd
  40. influxdb-async
  41. influxdb-lwt
  42. ip2location
  43. ip2locationio
  44. ip2whois
  45. irmin-cli
  46. irmin-graphql >= "2.3.0"
  47. irmin-http >= "2.3.0"
  48. irmin-mirage-git >= "2.3.0" & < "2.8.0"
  49. irmin-unix >= "2.3.0"
  50. learn-ocaml
  51. learn-ocaml-client
  52. letsencrypt < "0.3.0"
  53. links
  54. magic-trace
  55. mqtt
  56. nsq
  57. ocamlapi
  58. oframl
  59. ojs-base
  60. opium_kernel
  61. prometheus-app < "1.2"
  62. quests
  63. reddit_api_kernel
  64. river
  65. sentry
  66. session-cohttp
  67. smtml >= "0.3.1"
  68. telegraml
  69. tidy_email_mailgun
  70. webmachine
  71. websocket
  72. yocaml_runtime

Conflicts

None

OCaml

Innovation. Community. Security.