package cohttp-lwt-unix

  1. Overview
  2. Docs
  • deprecated This module is not for public consumption

The Io module contains the IO implementation for cohttp-lwt-unix.

The Logs source name for this module logger is "cohttp.lwt.io". Refer to the Debug module for further details.

include Cohttp_lwt.S.IO with type ic = Cohttp_lwt_unix__.Input_channel.t and type oc = Lwt_io.output_channel and type conn = Conduit_lwt_unix.flow and type error = exn
type 'a t = 'a Lwt.t
val (>>=) : 'a t -> ('a -> 'b t) -> 'b t
val return : 'a -> 'a t
type ic
type oc = Lwt_io.output_channel
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 = exn
val catch : (unit -> 'a t) -> ('a, error) Stdlib.result t
val pp_error : Stdlib.Format.formatter -> error -> unit
OCaml

Innovation. Community. Security.