package httpaf_caged

  1. Overview
  2. Docs

Module Httpaf_caged.Request

type t = Httpaf.Request.t = {
  1. meth : Method.t;
  2. target : string;
  3. version : Version.t;
  4. headers : Headers.t;
}
val create : ?version:Version.t -> ?headers:Headers.t -> Method.t -> string -> t
val body_length : t -> [ `Chunked | `Error of [ `Bad_request ] | `Fixed of Int64.t ]
val persistent_connection : ?proxy:bool -> t -> bool
val pp_hum : Format.formatter -> t -> unit