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.1.tbz
sha256=a40e9e88cd5555f5398c34cb2bff9837a053f8c6215c1aeb3269032a74a41cd8
sha512=b6f3bf1ba669e88c80adf779c9186513b0427377f1ca0bb7f896a99241373ef2cc3f59ff786fb7fc99e7bf79d92e2fad1fa52e3172c3e30a37b97cb405e2ac43

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