package websocket

  1. Overview
  2. Docs

Module Make.ResponseSource

Sourcetype reader
Sourcetype writer
Sourcemodule 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
OCaml

Innovation. Community. Security.