package cohttp

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

Install

Dune Dependency

Authors

Maintainers

Sources

cohttp-6.1.1.tbz
sha256=6b420c56203b3a0b515964f036bcea0fb9a362876b5791cd7ff50e12366c489c
sha512=839ff6156658ca6d7922e6eed63ebb84dd09c76107790477be55a1ffc4a3800bf49c435147a0ed628f147eaeccff9a8d34565e3787f32c15e187b6e8855f0b93

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: 09 Jun 2025

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.8"

Dev Dependencies (3)

  1. odoc with-doc
  2. alcotest with-test & >= "1.7.0"
  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
  8. canary
  9. cca >= "0.6.2"
  10. cohttp-async < "2.2.0" | >= "6.1.1"
  11. cohttp-bench >= "6.1.1"
  12. cohttp-curl-lwt >= "6.1.1"
  13. cohttp-eio >= "6.1.1"
  14. cohttp-lwt >= "6.1.1"
  15. cohttp-lwt-jsoo < "2.2.0" | >= "6.1.1"
  16. cohttp-lwt-unix >= "6.1.1"
  17. cohttp-mirage >= "6.1.1"
  18. cohttp-top < "2.2.0" | >= "6.1.1"
  19. cohttp_async_websocket >= "v0.16.0"
  20. comby-semantic
  21. cowabloga
  22. current_github >= "0.4" & < "0.6"
  23. current_slack = "0.5"
  24. current_web >= "0.4" & < "0.6"
  25. dblp-api
  26. dropbox
  27. frenetic
  28. git < "2.0.0"
  29. git-cohttp
  30. git-cohttp-mirage
  31. git-cohttp-unix
  32. git-paf < "3.5.0"
  33. git-unix < "2.0.0" | >= "2.1.1" & < "3.0.0"
  34. github
  35. github-jsoo >= "4.1.0" & < "4.3.0" | >= "4.4.0"
  36. github-unix >= "4.2.0"
  37. gitlab-jsoo
  38. gitlab-unix
  39. gradescope_submit
  40. graphql-cohttp < "0.9.0"
  41. hockmd
  42. influxdb-async
  43. influxdb-lwt
  44. ip2location
  45. ip2locationio
  46. ip2whois
  47. irmin-cli
  48. irmin-graphql >= "2.3.0"
  49. irmin-http >= "2.3.0"
  50. irmin-mirage-git >= "2.3.0" & < "2.8.0"
  51. irmin-unix >= "2.3.0"
  52. learn-ocaml
  53. learn-ocaml-client
  54. letsencrypt < "0.3.0"
  55. links
  56. magic-trace
  57. mqtt
  58. nsq
  59. ocamlapi
  60. oframl
  61. ojs-base
  62. opium_kernel
  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.