package cohttp

  1. Overview
  2. Docs
An OCaml library for HTTP clients and servers

Install

dune-project
 Dependency

Authors

Maintainers

Sources

cohttp-v4.0.0.tbz
sha256=bd7aa4cd2c82744990ed7c49e3ee7a40324c64cb3d8509804809155e2bacd1d2
sha512=f56014c80ec77f79cc9a3a55afaa5fb8e37d9d69a4115f1b25fa96623c8e6875844bfdc97dd6fe41f83ac4b251a397b905a3eb31df90dae95d5a96101d265e03

doc/cohttp/Cohttp/index.html

Module Cohttp

module Accept : sig ... end

Accept-Encoding HTTP header parsing and generation

module Auth : sig ... end

HTTP Authentication and Authorization header parsing and generation

module Body : sig ... end

HTTP request and response body handling

module Conf : sig ... end

Compile-time configuration variables

module Connection : sig ... end

Connection identifiers.

module Code : sig ... end

Functions for the HTTP Cookie and Set-Cookie header fields. Using the Set-Cookie header field, an HTTP server can pass name/value pairs and associated metadata (called cookies) to a user agent. When the user agent makes subsequent requests to the server, the user agent uses the metadata and other information to determine whether to return the name/value pairs in the Cookie header.

module Header : sig ... end

Map of HTTP header key and value(s) associated with them. Since HTTP headers can contain duplicate keys, this structure can return a list of values associated with a single key.

RFC 5988 ("Web Linking") and RFC 5987 ("Character Set and Language Encoding for Hypertext Transfer Protocol (HTTP) Header Field Parameters")

module Request : sig ... end

HTTP/1.1 request handling

module Response : sig ... end

HTTP/1.1 response handling

module S : sig ... end

Module type signatures for Cohttp components

module Path : sig ... end
module Transfer : sig ... end

Read and write the HTTP/1.1 transfer-encoding formats. Currently supported are chunked and content-length.