package cohttp

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

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-v6.0.0_beta2.tbz
sha256=90ecec8bd580411b4272c031b2f6b9c0a50485d20683c6a9c615242f3724b017
sha512=83ef539469d982862174a929e9baeb5b2a34e9323ee577d8be7148ebed9e785d835d59cc22982bc083bb872e4544616e2bf531ed7edf96bc397151c28bf618d6

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: 10 Jan 2024

Dependencies (11)

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

Dev Dependencies (3)

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

Used by (75)

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

Conflicts

None

OCaml

Innovation. Community. Security.