package mirage-flow-combinators

  1. Overview
  2. Docs

Module Mirage_flow_combinators.ProxySource

Parameters

module A : SHUTDOWNABLE
module B : SHUTDOWNABLE

Signature

Sourcetype error

The type for proxy errors.

Sourceval pp_error : error Fmt.t

pp_error pretty-prints errors.

proxy a b proxies data between a and b until both sides close. If either direction encounters an error then so will proxy. If both directions succeed, then return I/O statistics.

OCaml

Innovation. Community. Security.