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.2.0.tbz
sha256=3587d8d1e297025340ab59b934acc2c96fabfc36ff60f07a7d64e7067521e631
sha512=8bb3be3ec6ff35e5ced00cd99d87c4a2f3941571cce90b54817de68374143a217b65ab1bd211a92414664a344fd41b61e1e92e908fcda900331cb14e5a2dd6f1

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