package httpcats

  1. Overview
  2. Docs

Module RuntimeSource

Sourcemodule Flow : sig ... end
Sourcemodule type S = sig ... end
Sourcemodule type CONNECTION = sig ... end
Sourcemodule Make (Flow : Flow.S) (Runtime : S) : CONNECTION with type conn = Runtime.t and type flow = Flow.t

Make runs an HTTP state-machine on top of a flow. The Runtime itself allocates no scratch buffer: it hands the connection's bigstring to Flow.S.read and the Faraday iovecs to Flow.S.writev. A flow which can only speak bytes/string goes through Flow.Of_bytes, which owns the buffer it needs.

Sourceval terminate : unit Miou.orphans -> unit
Sourceval clean : unit Miou.orphans -> unit