package piaf

  1. Overview
  2. Docs
type t = private {
  1. status : Status.t;
  2. headers : Headers.t;
  3. version : Versions.HTTP.t;
  4. body : Body.t;
}
val create : ?version:Versions.HTTP.t -> ?headers:Headers.t -> ?body:Body.t -> Status.t -> t
val of_string : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:string -> Status.t -> t
val of_bigstring : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:Bigstringaf.t -> Status.t -> t
val of_string_stream : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:string Lwt_stream.t -> Status.t -> t
val of_stream : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:Bigstringaf.t IOVec.t Lwt_stream.t -> Status.t -> t
val upgrade : ?version:Versions.HTTP.t -> ?headers:Headers.t -> ((Gluten.impl -> unit) -> unit) -> t
val of_file : ?version:Versions.HTTP.t -> ?headers:Headers.t -> string -> t Lwt.t
val persistent_connection : t -> bool
val pp_hum : Stdlib.Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.