package httpcats

  1. Overview
  2. Docs

Module type Runtime.SSource

Sourcetype t
Sourceval next_read_operation : t -> [ `Read | `Yield | `Close | `Upgrade ]
Sourceval read : t -> Bstr.t -> off:int -> len:int -> int
Sourceval read_eof : t -> Bstr.t -> off:int -> len:int -> int
Sourceval yield_reader : t -> (unit -> unit) -> unit
Sourceval next_write_operation : t -> [ `Write of Bstr.t Faraday.iovec list | `Close of int | `Yield | `Upgrade ]
Sourceval report_write_result : t -> [ `Ok of int | `Closed ] -> unit
Sourceval yield_writer : t -> (unit -> unit) -> unit
Sourceval report_exn : t -> exn -> unit
Sourceval is_closed : t -> bool