package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

Dune Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha6.tar.gz
sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90

doc/dream-httpaf.dream-websocketaf/Dream_websocketaf/Websocketaf/Wsd/index.html

Module Websocketaf.WsdSource

Sourcetype mode = [
  1. | `Client of unit -> int32
  2. | `Server
]
Sourcetype t
Sourceval schedule : t -> ?is_fin:bool -> kind:[ `Text | `Binary | `Continuation ] -> Bigstringaf.t -> off:int -> len:int -> unit

is_fin defaults to true. Set to `false` if sending multiple frames, except on the last one.

Sourceval send_bytes : t -> ?is_fin:bool -> kind:[ `Text | `Binary | `Continuation ] -> Bytes.t -> off:int -> len:int -> unit

is_fin defaults to true. Set to `false` if sending multiple frames, except on the last one.

Sourceval send_ping : ?application_data:Bigstringaf.t IOVec.t -> t -> unit
Sourceval send_pong : ?application_data:Bigstringaf.t IOVec.t -> t -> unit
Sourceval flushed : t -> (unit -> unit) -> unit
Sourceval close : ?code:Websocket.Close_code.t -> t -> unit
Sourceval is_closed : t -> bool
Sourceval error_code : t -> [> `Exn of exn ] option
OCaml

Innovation. Community. Security.