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-alpha5.tar.gz
sha256=05bc7f6aff94893c151f3a5bcdee3328920c69b3763fac49ba27348dc7745901
md5=de6f6908ae899c9e85f2c751a0263932

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 -> 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
Sourceval error_code : t -> [> `Exn of exn ] option
OCaml

Innovation. Community. Security.