Module Body.Writer

type t = writer
val write_string : t -> string -> (unit, Awskit.Error.t) Stdlib.result Lwt.t

Write one string chunk to a streaming request body.

val write_bytes : t -> bytes -> (unit, Awskit.Error.t) Stdlib.result Lwt.t

Write one bytes chunk to a streaming request body.

val write_subbytes : t -> bytes -> off:int -> len:int -> (unit, Awskit.Error.t) Stdlib.result Lwt.t

Write the slice bytes.{off .. off + len - 1} to a streaming request body.