# \[ANN\] HTTP client library

**URL:** <https://discuss.ocaml.org/t/ann-http-client-library/8428>\
**Category:** Community\
**Tags:** http2, http, opam, announce\
**Created:** [September 6, 2021, 3:58pm UTC](https://discuss.ocaml.org/t/ann-http-client-library/8428 "2021-09-06T15:58:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![hannes](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ocaml.org/hannes/32/2302_2.png) [@hannes](https://discuss.ocaml.org/u/hannes)\
**Post date:** [September 6, 2021, 3:58pm UTC](https://discuss.ocaml.org/t/ann-http-client-library/8428/1 "2021-09-06T15:58:54Z")

</div>

Hello,

we just released to the opam-repository the [`http-lwt-client`](https://github.com/roburio/http-lwt-client) package, which consists of both a library doing HTTP requests and a binary (`hurl`) that does HTTP requests.

The code is based on [HTTP/AF](https://github.com/inhabitedtype/httpaf) and [H2](https://github.com/anmonteiro/ocaml-h2), and uses [tls](https://github.com/mirleft/ocaml-tls) for HTTPS connections. Both HTTP/1(.1) and HTTP/2 protocols are supported. The motivation behind this package is to have a http client that has a reasonably small dependency cone, is purely implemented in OCaml, and uses the asynchronous task library lwt.

This package uses [happy-eyeballs](https://github.com/roburio/happy-eyeballs) to connect to a remote host via IPv4 and IPv6, as proposed by IETF [RFC 8305](https://tools.ietf.org/html/rfc8305): on any computer with either IPv4 or IPv6 connectivity, a remote IPv6 or IPv4 server will be connected. Preference is given to IPv6.

If a https url is provided, the server certificate is verified using the [ca-certs](https://github.com/mirage/ca-certs) package.

If you experience any issues or have further needs for this package, please report an issue on the GitHub issue tracker.

The installation is just an `opam install http-lwt-client` away 🙂

---

_[View the full topic](https://discuss.ocaml.org/t/ann-http-client-library/8428)._
