package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t = {
  1. buffer : Bigstringaf.t;
  2. encoder : Faraday.t;
  3. mutable drained_bytes : int;
  4. mutable wakeup : Optional_thunk.t;
}
val create : ?buffer_size:int -> unit -> t
val faraday : t -> Faraday.t
val write_request : t -> Request.t -> unit
val write_response : t -> Response.t -> unit
val write_string : t -> ?off:int -> ?len:int -> string -> unit
val write_bytes : t -> ?off:int -> ?len:int -> Stdlib.Bytes.t -> unit
val write_bigstring : t -> ?off:int -> ?len:int -> Faraday.bigstring -> unit
val schedule_bigstring : t -> ?off:int -> ?len:int -> Faraday.bigstring -> unit
val schedule_fixed : t -> Faraday.bigstring IOVec.t list -> unit
val schedule_chunk : t -> Faraday.bigstring IOVec.t list -> unit
val on_wakeup : t -> (unit -> unit) -> unit
val wakeup : t -> unit
val flush : t -> (unit -> unit) -> unit
val unyield : t -> unit
val yield : t -> unit
val close : t -> unit
val close_and_drain : t -> unit
val is_closed : t -> bool
val drained_bytes : t -> int
val report_result : t -> [< `Closed | `Ok of int ] -> unit
val next : t -> [> `Close of int | `Write of Faraday.bigstring Faraday.iovec list | `Yield ]
OCaml

Innovation. Community. Security.