package dream-httpaf

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type encoding =
  1. | Identity
  2. | Chunked of {
    1. mutable written_final_chunk : bool;
    }
type t = {
  1. faraday : Faraday.t;
  2. encoding : encoding;
  3. writer : Serialize.Writer.t;
  4. buffered_bytes : int Stdlib.ref;
}
val of_faraday : Faraday.t -> encoding:[< `Chunked | `Close_delimited | `Fixed of 'a ] -> writer:Serialize.Writer.t -> t
val create : Faraday.bigstring -> encoding:[< `Chunked | `Close_delimited | `Fixed of 'a ] -> writer:Serialize.Writer.t -> t
val create_empty : writer:Serialize.Writer.t -> t
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 ready_to_write : t -> unit
val flush : t -> (unit -> unit) -> unit
val is_closed : t -> bool
val close : t -> unit
val force_close : t -> unit
val has_pending_output : t -> bool
val requires_output : t -> bool
val transfer_to_writer : t -> unit
OCaml

Innovation. Community. Security.