package http_async

  1. Overview
  2. Docs
type t

Writer represents response bodies. It supports both fixed length bodies represented via strings/bigstrings, and streaming bodies.

val sexp_of_t : t -> Sexplib0.Sexp.t
val encoding : t -> [ `Chunked | `Fixed of int ]
val empty : t
val string : string -> t
val bigstring : Core.Bigstring.t -> t
val stream : ?encoding:[ `Chunked | `Fixed of int ] -> Core.Bigstring.t Core_unix.IOVec.t Async.Pipe.Reader.t -> t