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 status : t -> Status.t
val headers : t -> Headers.t
val version : t -> Versions.HTTP.t
val body : t -> Body.t
val create : ?version:Versions.HTTP.t -> ?headers:Headers.t -> ?body:Body.t -> Status.t -> t
val with_ : ?status:Status.t -> ?headers:Headers.t -> ?version:Versions.HTTP.t -> ?body:Body.t -> 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 Stream.t -> Status.t -> t
val of_stream : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:Bigstringaf.t IOVec.t Stream.t -> Status.t -> t
val copy_file : ?version:Versions.HTTP.t -> ?headers:Headers.t -> string -> (t, [> Error.common ]) result
val sendfile : ?version:Versions.HTTP.t -> ?headers:Headers.t -> string -> (t, [> Error.common ]) result
module Upgrade : sig ... end
val or_internal_error : (t, Error.t) result -> t
val persistent_connection : t -> bool
val pp_hum : Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.