package cohttp-lwt-unix

  1. Overview
  2. Docs
module Bytebuffer = Cohttp_lwt.Private.Bytebuffer
type t = {
  1. buf : Bytebuffer.t;
  2. chan : Lwt_io.input_channel;
}
val create : ?buf_len:int -> Lwt_io.input_channel -> t
val read_line_opt : t -> string option Lwt.t
val read : t -> int -> string Lwt.t
val refill : t -> [ `Eof | `Ok ] Lwt.t
val with_input_buffer : t -> f:(string -> pos:int -> len:int -> 'a * int) -> 'b
val close : t -> unit Lwt.t