package streamable

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type 'response_part t
val 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.

val 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.

val is_response_finalised : _ t -> bool
val response_finalised : _ t -> unit Async_kernel.Deferred.t
val close : _ t -> unit
val closed : _ t -> unit Async_kernel.Deferred.t
val flushed : _ t -> unit Async_kernel.Deferred.t
val is_closed : _ t -> bool
module Expert : sig ... end
OCaml

Innovation. Community. Security.