package cohttp-lwt

  1. Overview
  2. Docs

Module Make_client.IO

type 'a t = 'a Lwt.t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
type ic
type oc
type conn
val refill : ic -> [ `Eof | `Ok ] t
val with_input_buffer : ic -> f:(string -> pos:int -> len:int -> 'a * int) -> 'a
val read_line : ic -> string option t
val read : ic -> int -> string t
val write : oc -> string -> unit t
val flush : oc -> unit t
type error
val catch : (unit -> 'a t) -> ('a, error) result t
val pp_error : Format.formatter -> error -> unit