include RUNTIME
type t
val next_read_operation : t -> [ `Read | `Yield | `Close ]val read : t -> Bigstringaf.t -> off:int -> len:int -> intval read_eof : t -> Bigstringaf.t -> off:int -> len:int -> intval yield_reader : t -> (unit -> unit) -> unitval next_write_operation : t -> [ `Write of Bigstringaf.t Faraday.iovec list | `Yield | `Close of int ]val report_write_result : t -> [ `Ok of int | `Closed ] -> unitval yield_writer : t -> (unit -> unit) -> unitval report_exn : t -> exn -> unitval is_closed : t -> boolval shutdown : t -> unit
val create : protocol:'t runtime -> 't -> tval upgrade_protocol : t -> impl -> unit
type 'reqd request_handler = 'reqd Reqd.t -> unit
val create_upgradable : protocol:'t runtime -> create:(('reqd -> unit) -> 't) -> 'reqd request_handler -> t