package cohttp-lwt

  1. Overview
  2. Docs
include module type of struct include Http_bytebuffer.Bytebuffer end
val create : int -> t
val unsafe_buf : t -> Stdlib.Bytes.t
val pos : t -> int
val compact : t -> unit
val length : t -> int
val drop : t -> int -> unit
val to_string : t -> string
include sig ... end
val refill : Http_bytebuffer__Bytebuffer.t -> (bytes -> pos:int -> len:int -> [ `Eof | `Ok of int ] Lwt.t) -> [ `Eof | `Ok ] Lwt.t
val read_line : Http_bytebuffer__Bytebuffer.t -> (bytes -> pos:int -> len:int -> [ `Eof | `Ok of int ] Lwt.t) -> string option Lwt.t
val read : Http_bytebuffer__Bytebuffer.t -> (bytes -> pos:int -> len:int -> [ `Eof | `Ok of int ] Lwt.t) -> int -> string Lwt.t