package opium

  1. Overview
  2. Docs

Module OpiumSource

Sourcemodule Context : sig ... end

A context holds heterogeneous value and is passed to the requests or responses.

Sourcemodule Headers : sig ... end

Header Fields

Cookie management for both requests and responses.

Sourcemodule Method : sig ... end

Request Method

Sourcemodule Version : sig ... end

Protocol Version

Sourcemodule Status : sig ... end

Response Status Codes

Sourcemodule Body : sig ... end

Represents an HTTP request or response body.

Sourcemodule Request : sig ... end

Module to create and work with HTTP requests.

Sourcemodule Response : sig ... end

Module to create and work with HTTP responses.

Sourcemodule App : sig ... end

An opium app provides a set of convenience functions and types to construct a rock app.

Sourcemodule Route : sig ... end

Expression that represent a target or multiple

Sourcemodule Auth : sig ... end

Authentication functions to work with common HTTP authentication methods.

Sourcemodule Router : sig ... end
Sourcemodule Handler : sig ... end

Collection of handlers commonly used to build Opium applications

Sourcemodule Middleware : sig ... end

Collection of middlewares commonly used to build Opium applications.