package httpaf

  1. Overview
  2. Docs
A high-performance, memory-efficient, and scalable web server for OCaml.

Install

dune-project
 Dependency

Authors

Maintainers

Sources

0.2.0.tar.gz
sha256=9156a22b758b17f5fad3147d852d69568628324c55f09089bd7fff47d6306001
md5=b878ea9b23b3c863ed2a532148bb430e

doc/httpaf/Httpaf/Reqd/index.html

Module Httpaf.ReqdSource

Request Descriptor

Sourcetype 'handle t
Sourceval request : _ t -> Request.t
Sourceval request_body : _ t -> [ `read ] Body.t
Sourceval response : _ t -> Response.t option
Sourceval response_exn : _ t -> Response.t
Sourceval respond_with_string : _ t -> Response.t -> string -> unit
Sourceval respond_with_bigstring : _ t -> Response.t -> Bigstring.t -> unit
Sourceval respond_with_streaming : _ t -> Response.t -> [ `write ] Body.t
Sourceval report_exn : _ t -> exn -> unit
Sourceval try_with : _ t -> (unit -> unit) -> (unit, exn) Result.result