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.0.tbz
sha256=ff77d72ec8a294632e99757d1ae1a96073e6fb282d1c0e1e514b47b19976959d
sha512=0efc177c18cc74a8e24e6405331f716aeb780b528176b15c64b1e698cab0113cc25e30e0c9a075b51c1eb780c844734c8c930f9d18e351e73706d9c3d3738b85

doc/httpcats.runtime/Runtime/Make/argument-2-Runtime/index.html

Parameter Make.Runtime

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