package httpaf_caged

  1. Overview
  2. Docs

Module Httpaf_caged.Response

type t = {
  1. version : Version.t;
  2. status : Status.t;
  3. reason : string;
  4. headers : Headers.t;
}
val create : ?reason:string -> ?version:Version.t -> ?headers:Headers.t -> Status.t -> t
val body_length : ?proxy:bool -> request_method:Method.standard -> t -> [ `Chunked | `Close_delimited | `Error of [ `Bad_gateway | `Internal_server_error ] | `Fixed of Int64.t ]
val persistent_connection : ?proxy:bool -> t -> bool
val pp_hum : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.