package dream

  1. Overview
  2. Docs
Tidy, feature-complete Web framework

Install

Dune Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha1.tar.gz
sha256=c8d988568fbbeffb151abdb4d6b903fbd3897842d3eb9b2c28fb350f0f02bbd4
md5=b8ad7f3e30f3e88e5451d92e42b49ce4

doc/websocketaf/Websocketaf/Server_connection/index.html

Module Websocketaf.Server_connectionSource

Sourcetype t
Sourcetype input_handlers = {
  1. frame : opcode:Websocket.Opcode.t -> is_fin:bool -> Bigstringaf.t -> off:int -> len:int -> unit;
  2. eof : unit -> unit;
}
Sourcetype error = [
  1. | `Exn of exn
]
Sourcetype error_handler = Wsd.t -> error -> unit
Sourceval create : sha1:(string -> string) -> ?error_handler:error_handler -> (Wsd.t -> input_handlers) -> t
Sourceval create_websocket : ?error_handler:error_handler -> (Wsd.t -> 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.