Module Expert.Responder
val schedule : t -> Core_kernel.Bigstring.t -> pos:int -> len:int -> [ `Flushed of unit Async_kernel.Deferred.t | `Connection_closed ]
As in
Writer
, after callingschedule
, you should not overwrite theBigstring.t
passed in until the responder is flushed.
val write_bigstring : t -> Core_kernel.Bigstring.t -> pos:int -> len:int -> unit
On the other hand, these are written immediately.
val write_bin_prot : t -> 'a Bin_prot.Type_class.writer -> 'a -> unit
val write_error : t -> Core_kernel.Error.t -> unit