package dream-httpaf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Serialize.WriterSource

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

Innovation. Community. Security.