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.3.tbz
sha256=e07ecc6ed9ae9dbf5ae24f7ffcc439357d37e3efe2748c4d4e0dcad732ea3712
sha512=1a5a0f288a812ae60fecd9a693aaeb44598fb6bbf33dd5f1687662da79dc2b5c6a6c45cc37f5d031c126816356fecf0ef04372e85f0813e1589ee16bbd19fb44

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