← All repos

httpaf

A high performance, memory efficient, and scalable web server written in OCaml

httpocaml
Browse cluster: OCaml Systems and Utilities
491commits
17contributors
3languages

Tech stack & purpose

http/af is a high-performance, memory-efficient web server written in OCaml that implements the HTTP 1.1 specification with support for parsing, serialization, and connection pipelining. The project uses the Angstrom and Faraday libraries to handle the parsing and serialization layers of the HTTP standard. It is designed as a state machine agnostic to the underlying IO mechanism, making it portable across platforms and compatible with runtimes like Async and Lwt. The project was developed in response to scalability issues with the existing cohttp library and demonstrates significantly better performance characteristics in benchmarks.

Community & reference links

Languages

OCaml
99.5%
Standard ML
0.4%
Makefile
0.1%

Contributors