package conduit-mirage

  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 -> Sexplib0.Sexp.t
val client_of_sexp : Sexplib0.Sexp.t -> client
type server

The type for server configuration values.

val sexp_of_server : server -> Sexplib0.Sexp.t
val server_of_sexp : Sexplib0.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.