ocaml http/1, http/2 and websocket client and server library
README.md

HCS Documentation#

HCS is an HTTP library for OCaml 5+ built on Eio. It provides HTTP/1.1, HTTP/2, and WebSocket support for both clients and servers.

Getting Started#

New to HCS? Start here:

  1. Installation - Set up HCS in your project
  2. Your First Server - Build a simple HTTP server
  3. Your First Client - Make HTTP requests

Guides#

Learn the core concepts:

HTTP Client#

Using HCS as an HTTP client:

Real-time#

Build real-time applications:

Plugs#

The middleware system:

Recipes#

Common patterns and solutions: