package httpun-ws

  1. Overview
  2. Docs

Module Httpun_ws.Server_connectionSource

Sourcetype t
Sourceval create : ?config:Httpun.Config.t -> ?error_handler:Httpun.Server_connection.error_handler -> sha1:(string -> string) -> (Wsd.t -> Websocket_connection.input_handlers) -> t
Sourceval create_websocket : (Wsd.t -> Websocket_connection.input_handlers) -> t
Sourceval next_read_operation : t -> [ `Read | `Yield | `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 read_eof : t -> Bigstringaf.t -> off:int -> len:int -> int
Sourceval report_write_result : t -> [ `Ok of int | `Closed ] -> unit
Sourceval report_exn : t -> exn -> unit
Sourceval yield_reader : t -> (unit -> unit) -> unit
Sourceval yield_writer : t -> (unit -> unit) -> unit
Sourceval is_closed : t -> bool
Sourceval shutdown : t -> unit
OCaml

Innovation. Community. Security.