Up

Module Responder

Signature

val schedule : t -> Core_kernel.Std.Bigstring.t -> pos:int -> len:int -> [
| `Flushed of unit Async_kernel.Std.Deferred.t
| `Connection_closed
]

As in Writer, after calling schedule, you should not overwrite the Bigstring.t passed in until the responder is flushed.

val write_bigstring : t -> Core_kernel.Std.Bigstring.t -> pos:int -> len:int -> unit

On the other hand, these are written immediately.

val write_bin_prot : t -> 'a Core_kernel.Std.Bin_prot.Type_class.writer -> 'a -> unit
val write_error : t -> Core_kernel.Std.Error.t -> unit