package http-lwt-client

  1. Overview
  2. Docs
A simple HTTP client using http/af, h2, and lwt

Install

Dune Dependency

Authors

Maintainers

Sources

http-lwt-client-0.3.0.tbz
sha256=1a147038ef48592216848b98ff528b6d3deb197884c185e26091e6bb8bc4f3f2
sha512=3b4a5cd17572b4d983553c393c90656df6c72f55b014f5a0c3f83d62375b2a12395b0c065a9168b11b3d88e7b173d21a1990bc86804b0f036b9e669b3a12b08a

Description

Published: 29 Aug 2024

README

Http-lwt-client -- simple HTTP client using http/af, h2, and lwt

A simple HTTP/1.1 and HTTP/2.0 client supporting HTTP and HTTPS. It follows redirects (up to a given limit). Its dependency cone is small, and does not include any wrappers or frameworks.

Additionally, a sample binary hurl is provided that exposes most of the functionality as a command line program.

Other HTTP clients developed in OCaml include ofetch (minimal OCaml stdlib-only), piaf (HTTP 1 and HTTP 2 support), cohttp (a functorised HTTP client and server library), curly (a wrapper around curl), paf-le-chien (a MirageOS layer for HTTP/AF and H2) - but they didn't fit our needs.

This is distributed under the 3 clause BSD license, some code is inherited from the HTTP/AF project (src/http_lwt_unix.{ml,mli} - as noted in that file).

Dependencies (15)

  1. h2 >= "0.10.0"
  2. happy-eyeballs-lwt
  3. bos
  4. fmt
  5. ca-certs
  6. tls-lwt >= "1.0.0"
  7. tls >= "1.0.0"
  8. httpaf >= "0.7.0"
  9. faraday-lwt-unix
  10. base64 >= "3.1.0"
  11. lwt
  12. logs
  13. cmdliner >= "1.1.0"
  14. dune >= "2.0.0"
  15. ocaml >= "4.08.0"

Dev Dependencies

None

Used by (3)

  1. albatross >= "1.5.3"
  2. builder >= "0.3.2"
  3. docker_hub >= "0.1.1"

Conflicts (1)

  1. result < "1.5"
OCaml

Innovation. Community. Security.