package dream-httpaf

  1. Overview
  2. Docs
Internal: shared http/af stack for Dream (server) and Hyper (client)

Install

dune-project
 Dependency

Authors

Maintainers

Sources

dream-1.0.0-alpha6.tar.gz
sha256=8d3b6344c0e175aca628b3d5bb8ee58265e8c1074fc2d40d63f136fef83daf90

doc/dream-httpaf.dream-h2/Dream_h2/Respd/index.html

Module Dream_h2.RespdSource

Sourcemodule Writer = Serialize.Writer
Sourcetype error = [
  1. | `Malformed_response of string
  2. | `Invalid_response_body_length of Response.t
  3. | `Protocol_error of Error_code.t * string
  4. | `Exn of exn
]
Sourcetype error_handler = error -> unit
Sourcetype response_handler = Response.t -> Body.Reader.t -> unit
Sourcetype response_info = {
  1. response : Response.t;
  2. response_body : Body.Reader.t;
  3. mutable response_body_bytes : int64;
  4. mutable trailers_parser : Stream.partial_headers option;
}
Sourcetype trailers_handler = Headers.t -> unit
Sourcetype active_request = {
  1. request : Request.t;
  2. request_body : Body.Writer.t;
  3. response_handler : response_handler;
  4. trailers_handler : trailers_handler;
}
Sourceval response_body_exn : t -> Body.Reader.t
Sourceval close_stream : t -> unit
Sourceval _report_error : t -> ?response_body:Body.Reader.t -> error -> Error_code.t -> unit
Sourceval report_error : t -> error -> Error_code.t -> unit
Sourceval requires_output : t -> bool
Sourceval flush_request_body : t -> max_bytes:int -> int
Sourceval deliver_trailer_headers : t -> Headers.t -> unit
Sourceval flush_response_body : t -> unit
OCaml

Innovation. Community. Security.