package mirage-conduit

  1. Overview
  2. Docs

The signature for runtime handlers

type t

The type for runtime handlers.

type client

The type for client configuration values.

val sexp_of_client : client -> Ppx_sexp_conv_lib.Sexp.t
val client_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> client
type server

The type for server configuration values.

val sexp_of_server : server -> Ppx_sexp_conv_lib.Sexp.t
val server_of_sexp : Ppx_sexp_conv_lib.Sexp.t -> server
val connect : t -> client -> Flow.flow Lwt.t

Connect a conduit using client configuration.

val listen : t -> server -> callback -> unit Lwt.t

Listen to a conduit using a server configuration.

OCaml

Innovation. Community. Security.