package streamable

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Plain_rpc.Direct_writerSource

Sourcetype 'response_part t
Sourceval write_response_without_pushback_exn : 'response_part t -> 'response_part -> [ `Ok | `Closed ]

Write a part of the response. Returns `Closed if t is closed. Will raise if the response has already been finalised.

Sourceval finalise_response_without_pushback_exn : _ t -> [ `Ok | `Closed ]

Finalise the response, indicating there are no more parts. Returns `Closed if t is closed.

Will raise if the response has already been finalised.

Sourceval is_response_finalised : _ t -> bool
Sourceval response_finalised : _ t -> unit Async_kernel.Deferred.t
Sourceval close : _ t -> unit
Sourceval closed : _ t -> unit Async_kernel.Deferred.t
Sourceval flushed : _ t -> unit Async_kernel.Deferred.t
Sourceval is_closed : _ t -> bool
Sourcemodule Expert : sig ... end