package httpaf

  1. Overview
  2. Docs
type t
val schedule_read : t -> on_eof:(unit -> unit) -> on_read:(Bigstring.t -> off:int -> len:int -> int) -> unit
val close : t -> unit

close t closes t, causing subsequent read or write calls to raise.

val is_closed : t -> bool

is_closed t is true if close has been called on t and false otherwise. A closed t may still have pending output.

OCaml

Innovation. Community. Security.