package awsm

  1. Overview
  2. Docs

Module Awsm.HttpSource

Uniform Cohttp interface. Cohttp's interface isn't entirely uniform, making it difficult to provide a single functorized implementation over Async and Lwt. We define a signature here that covers the features of Cohttp we need. Async and Lwt implementations matching this signature are provided.

Sourcemodule type S = sig ... end
Sourcemodule Meth : sig ... end
Sourcemodule Headers : sig ... end
Sourcemodule Monad : sig ... end

Monad type class. The technique used here relies on lightweight higher-kinded polymorphism as described by Yallop and White in FLOPS (2014). Familiarity with the concepts in that paper is a prerequisite to understanding this module. However, most users do not need to understand this module since common useful instances of the abstract types here are provided elsewhere.

Sourcemodule Range : sig ... end

High level representation of a http byte range specifications. For a full treatment, see https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.35

Sourcemodule Status : sig ... end
Sourcemodule Request : sig ... end
Sourcemodule Response : sig ... end
Sourcemodule Call : sig ... end
Sourcemodule Io : sig ... end
OCaml

Innovation. Community. Security.