package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. faraday : Faraday.t;
  2. mutable read_scheduled : bool;
  3. mutable on_eof : unit -> unit;
  4. mutable on_read : Bigstringaf.t -> off:int -> len:int -> unit;
  5. buffered_bytes : int ref;
  6. done_reading : int -> unit;
}
val default_done_reading : int -> unit
val default_on_eof : unit -> unit
val default_on_read : Bigstringaf.t -> off:int -> len:int -> unit
val create : Faraday.bigstring -> done_reading:(int -> unit) -> t
val create_empty : unit -> t
val empty : t
val is_closed : t -> bool
val unsafe_faraday : t -> Faraday.t
val do_execute_read : t -> (unit -> unit) -> (Faraday.bigstring -> off:int -> len:int -> unit) -> unit
val execute_read : t -> unit
val schedule_read : t -> on_eof:(unit -> unit) -> on_read:(Bigstringaf.t -> off:int -> len:int -> unit) -> unit
val close : t -> unit
val has_pending_output : t -> bool
OCaml

Innovation. Community. Security.