package httpaf

  1. Overview
  2. Docs

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
OCaml

Innovation. Community. Security.