package cohttp

  1. Overview
  2. Docs

Lwt IO implementation that uses strings to marshal and unmarshal HTTP

IO interface that uses buf for input data and queues output data into a Buffer.t. Never actually blocks despite the Lwt use, although a future revision may yield when parsing large strings.

include Cohttp.S.IO with type 'a t = 'a Lwt.t and type ic = Cohttp.String_io.buf and type oc = Buffer.t
type 'a t = 'a Lwt.t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
type ic = Cohttp.String_io.buf
type oc = Buffer.t
type conn
val read_line : ic -> string option t
val read : ic -> int -> string t
val write : oc -> string -> unit t
val flush : oc -> unit t
OCaml

Innovation. Community. Security.