package httpcats

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

httpcats-0.3.1.tbz
sha256=e41ca6a32252e49ca44e749e7b41e148acdb1e46fc8fa08eb98eed66d1831a1d
sha512=7e736d5c0ecc2f1c63c39ce39b322cd88b85c9d50eda2021e20043b0c855e7d61107605434e14f7186d4b8488f8c1e1048058bce5c0b1195d5bb16b84999107c

doc/httpcats.runtime/Runtime/module-type-S/index.html

Module type Runtime.SSource

Sourcetype t
Sourceval next_read_operation : t -> [ `Read | `Yield | `Close | `Upgrade ]
Sourceval read : t -> Bstr.t -> off:int -> len:int -> int
Sourceval read_eof : t -> Bstr.t -> off:int -> len:int -> int
Sourceval yield_reader : t -> (unit -> unit) -> unit
Sourceval next_write_operation : t -> [ `Write of Bstr.t Faraday.iovec list | `Close of int | `Yield | `Upgrade ]
Sourceval report_write_result : t -> [ `Ok of int | `Closed ] -> unit
Sourceval yield_writer : t -> (unit -> unit) -> unit
Sourceval report_exn : t -> exn -> unit
Sourceval is_closed : t -> bool