package dream-httpaf

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

Module Body.WriterSource

Sourcetype encoding =
  1. | Identity
  2. | Chunked of {
    1. mutable written_final_chunk : bool;
    }
Sourcetype t = {
  1. faraday : Faraday.t;
  2. encoding : encoding;
  3. writer : Serialize.Writer.t;
  4. buffered_bytes : int ref;
}
Sourceval of_faraday : Faraday.t -> encoding:[< `Chunked | `Close_delimited | `Fixed of 'a ] -> writer:Serialize.Writer.t -> t
Sourceval create : Faraday.bigstring -> encoding:[< `Chunked | `Close_delimited | `Fixed of 'a ] -> writer:Serialize.Writer.t -> t
Sourceval create_empty : writer:Serialize.Writer.t -> t
Sourceval write_char : t -> char -> unit
Sourceval write_string : t -> ?off:int -> ?len:int -> string -> unit
Sourceval write_bigstring : t -> ?off:int -> ?len:int -> Faraday.bigstring -> unit
Sourceval schedule_bigstring : t -> ?off:int -> ?len:int -> Bigstringaf.t -> unit
Sourceval ready_to_write : t -> unit
Sourceval flush : t -> (unit -> unit) -> unit
Sourceval is_closed : t -> bool
Sourceval close : t -> unit
Sourceval force_close : t -> unit
Sourceval has_pending_output : t -> bool
Sourceval requires_output : t -> bool
Sourceval transfer_to_writer : t -> unit
OCaml

Innovation. Community. Security.