package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module Writer = Serialize.Writer
type t = {
  1. faraday : Faraday.t;
  2. buffered_bytes : int Stdlib.ref;
  3. writer : Serialize.Writer.t;
}
val create : Faraday.bigstring -> writer:Serialize.Writer.t -> t
val create_empty : writer:Serialize.Writer.t -> t
val ready_to_write : t -> unit
val write_char : t -> char -> unit
val write_string : t -> ?off:int -> ?len:int -> string -> unit
val write_bigstring : t -> ?off:int -> ?len:int -> Faraday.bigstring -> unit
val schedule_bigstring : t -> ?off:int -> ?len:int -> Bigstringaf.t -> unit
val flush : t -> (unit -> unit) -> unit
val is_closed : t -> bool
val has_pending_output : t -> bool
val close : t -> unit
val unsafe_faraday : t -> Faraday.t
val transfer_to_writer : t -> Writer.t -> max_frame_size:int -> max_bytes:int -> Stream_identifier.t -> int
OCaml

Innovation. Community. Security.