package websocket

  1. Overview
  2. Docs
Websocket library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

websocket-2.17.tbz
sha256=39af5eb5534b2df5b65ccf700b0a620438be5f09864a8e80b48ab60ee67a7a9c
sha512=a8cd168236acfa1156fac5a007fe6875a35f8fb03eee30a94eb712a2dc981a967bb8fb74fdd7aa7892d148176070333d49311ea9600f5a210e56be8da32197c8

doc/websocket/Websocket/Make/Response/index.html

Module Make.ResponseSource

Sourcetype reader
Sourcetype writer
module IO : Cohttp.S.IO with type 'a t = 'a IO.t with type ic = IO.ic with type oc = IO.oc
Sourceval read : IO.ic -> [ `Eof | `Invalid of string | `Ok of t ] IO.t
Sourceval has_body : t -> [ `No | `Unknown | `Yes ]
Sourceval make_body_writer : ?flush:bool -> t -> IO.oc -> writer
Sourceval make_body_reader : t -> IO.ic -> reader
Sourceval read_body_chunk : reader -> Cohttp.Transfer.chunk IO.t
Sourceval write_header : t -> IO.oc -> unit IO.t
Sourceval write_body : writer -> string -> unit IO.t
Sourceval write : ?flush:bool -> (writer -> unit IO.t) -> t -> IO.oc -> unit IO.t