package cohttp

  1. Overview
  2. Docs

Module Private.String_ioSource

IO implementation that uses strings to marshal and unmarshal HTTP

Sourcetype 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

Sourceval open_in : string -> buf

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

Sourcemodule 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.