package websocketaf

  1. Overview
  2. Docs

Module Websocketaf.Client_handshakeSource

Sourcemodule IOVec = Httpaf.IOVec
Sourcetype t
Sourceval create : nonce:string -> host:string -> port:int -> resource:string -> error_handler:Httpaf.Client_connection.error_handler -> response_handler:Httpaf.Client_connection.response_handler -> t
Sourceval next_read_operation : t -> [ `Read | `Close ]
Sourceval next_write_operation : t -> [ `Write of Bigstringaf.t IOVec.t list | `Yield | `Close of int ]
Sourceval read : t -> Bigstringaf.t -> off:int -> len:int -> int
Sourceval report_write_result : t -> [ `Ok of int | `Closed ] -> unit
Sourceval yield_writer : t -> (unit -> unit) -> unit
Sourceval close : t -> unit