package cohttp-mirage

  1. Overview
  2. Docs

The signature for conduits

type flow

The type for networking flows.

type t

The type for handlers.

module Flow : Mirage_flow.S with type flow = flow

The type for flows.

val connect : t -> Conduit_mirage.client -> flow Lwt.t

Connect a conduit using client configuration.

val listen : t -> Conduit_mirage.server -> (flow -> unit Lwt.t) -> unit Lwt.t

Listen to a conduit using a server configuration.