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-alpha3.tar.gz
sha256=f289253109aee39ab912f9f38aa5e7b44e0b4b01fd7d3dd5c407b034c57f01bc
md5=148588e6f584cd9f2438e56da7df2f56

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

Module Websocketaf.WsdSource

Sourcetype mode = [
  1. | `Client of unit -> int32
  2. | `Server
]
Sourcetype t
Sourceval create : mode -> t
Sourceval schedule : t -> kind:[ `Text | `Binary | `Continuation ] -> Bigstringaf.t -> off:int -> len:int -> unit
Sourceval send_bytes : t -> kind:[ `Text | `Binary | `Continuation ] -> Bytes.t -> off:int -> len:int -> unit
Sourceval send_ping : t -> unit
Sourceval send_pong : t -> unit
Sourceval flushed : t -> (unit -> unit) -> unit
Sourceval close : ?code:Websocket.Close_code.t -> t -> unit
Sourceval is_closed : t -> bool
OCaml

Innovation. Community. Security.