package httpcats

All checked builds pass
  1. Overview
  2. Docs
A simple HTTP client / server using h1, h2, and miou

Install

dune-project
 Dependency

Authors

Maintainers

Sources

httpcats-0.3.4.tbz
sha256=9581d7167dc4f9cee58ee5daaa9b734561504a48668169ebef5c6ed5b0031366
sha512=d7947b405fde5e3cec9d2a8258dbc3545339389afc55307ad180ea65b33899cc319f328b9bd492eb9f467e9315df5c75846e95778077ef54bb774f20d10e7496

doc/httpcats.runtime/Runtime/index.html

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