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/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