An OCaml HTTP client library supporting HTTP/1.X and HTTP/2 protocols.
Piaf is an HTTP client library written entirely in OCaml that supports both HTTP/1.X and HTTP/2 protocols. It provides a native, type-safe way for OCaml applications to make HTTP requests, eliminating the need for external C bindings or wrappers. The library integrates with Eio, OCaml's effects-based I/O system, offering both synchronous and asynchronous request patterns.
OCaml developers building applications that require HTTP client functionality, particularly those using Eio for concurrency and I/O. It's suitable for projects needing reliable, type-safe HTTP communication with support for modern protocols.
Developers choose Piaf for its pure OCaml implementation, seamless Eio integration, and support for both HTTP/1.X and HTTP/2 in a single library. Its type-safe API reduces runtime errors while providing modern protocol support without external dependencies.
Web library for OCaml with support for HTTP/1.X / HTTP/2
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Written entirely in OCaml without external C bindings, ensuring pure integration and avoiding cross-language dependencies, as highlighted in the README.
Handles both HTTP/1.X and HTTP/2 in a single library, simplifying code for modern applications needing protocol flexibility.
Designed to work with Eio's effects-based I/O system, providing modern concurrency models, as shown in the usage example with Eio_main.run.
Leverages OCaml's type system for reliable HTTP communication, reducing runtime errors in request and response handling.
The README has a 'TODO' for usage examples and directs users to read the .mli file, which can hinder quick learning and adoption.
Setting up requires either nix or opam with specific switches, which might be cumbersome for developers unfamiliar with these tools.
As a newer library focused on Eio, it has fewer third-party integrations and community resources compared to established alternatives like cohttp.