package cohttp

  1. Overview
  2. Docs

IO implementation that uses strings to marshal and unmarshal HTTP

type buf = {
  1. str : string;
  2. mutable pos : int;
  3. len : int;
}

The buffer structured used to keep track of where in the string the library is currently reading from

val open_in : string -> buf

open_in s will make the string s available as a buf that can be parsed via Cohttp

module M : S.IO with type 'a t = 'a and type ic = buf and type oc = Buffer.t

IO interface that uses buf for input data and queues output data into a Buffer.t

OCaml

Innovation. Community. Security.