package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

Dune Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932

doc/dream-httpaf.dream-h2/Dream_h2/Body/Writer/index.html

Module Body.WriterSource

Sourcemodule Writer = Serialize.Writer
Sourcetype t = {
  1. faraday : Faraday.t;
  2. buffered_bytes : int ref;
  3. writer : Serialize.Writer.t;
}
Sourceval create : Faraday.bigstring -> writer:Serialize.Writer.t -> t
Sourceval create_empty : writer:Serialize.Writer.t -> t
Sourceval ready_to_write : t -> unit
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 flush : t -> (unit -> unit) -> unit
Sourceval is_closed : t -> bool
Sourceval has_pending_output : t -> bool
Sourceval close : t -> unit
Sourceval unsafe_faraday : t -> Faraday.t
Sourceval transfer_to_writer : t -> Writer.t -> max_frame_size:int -> max_bytes:int -> Stream_identifier.t -> int
OCaml

Innovation. Community. Security.