package h1

  1. Overview
  2. Docs

Module H1Source

Http/af is a high-performance, memory-efficient, and scalable web server for OCaml. It implements the HTTP 1.1 specification with respect to parsing, serialization, and connection pipelining. For compatibility, http/af respects the imperatives of the Server_connection header when handling HTTP 1.0 connections.

To use this library effectively, the user must be familiar with the HTTP 1.1 specification, and the basic principles of memory management and vectorized IO.

Basic HTTP Types

Sourcemodule Version : module type of Httpun_types.Version

Protocol Version

Sourcemodule Method : module type of Httpun_types.Method

Request Method

Sourcemodule Status : module type of Httpun_types.Status

Response Status Codes

Sourcemodule Headers : module type of Httpun_types.Headers

Header Fields

Message Body

Sourcemodule Body : sig ... end

Message Types

Sourcemodule Request : sig ... end

Request

Sourcemodule Response : sig ... end

Response

Sourcemodule IOVec : module type of Httpun_types.IOVec

IOVec

Sourcemodule Reqd : sig ... end
Sourcemodule Config : sig ... end

Server Connection

Sourcemodule Server_connection : sig ... end

Client Connection

Sourcemodule Client_connection : sig ... end
OCaml

Innovation. Community. Security.