package sonet

  1. Overview
  2. Docs

Parameters

Signature

type t
type callback = Callback.t
val send_request : request -> callback -> t -> unit
type error =
  1. | Error_eventloop of Eventloop.error
  2. | Error_http of callback * string
val string_of_error : error -> string
type callbacks = {
  1. connect_callback : t -> unit;
  2. response_callback : callback -> t -> Http.Response.t -> unit;
  3. shutdown_callback : t -> unit;
  4. error_callback : t -> error -> unit;
}
val connect : Eventloop.t -> Unix.sockaddr -> callbacks -> t
val detach : t -> unit
val close : t -> unit
val get_eventloop : t -> Eventloop.t
OCaml

Innovation. Community. Security.