package piaf

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Piaf.ResponseSource

Sourcetype t = private {
  1. status : Status.t;
  2. headers : Headers.t;
  3. version : Versions.HTTP.t;
  4. body : Body.t;
}
Sourceval status : t -> Status.t
Sourceval headers : t -> Headers.t
Sourceval version : t -> Versions.HTTP.t
Sourceval body : t -> Body.t
Sourceval create : ?version:Versions.HTTP.t -> ?headers:Headers.t -> ?body:Body.t -> Status.t -> t
Sourceval with_ : ?status:Status.t -> ?headers:Headers.t -> ?version:Versions.HTTP.t -> ?body:Body.t -> t -> t
Sourceval of_string : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:string -> Status.t -> t
Sourceval of_bigstring : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:Bigstringaf.t -> Status.t -> t
Sourceval of_string_stream : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:string Stream.t -> Status.t -> t
Sourceval of_stream : ?version:Versions.HTTP.t -> ?headers:Headers.t -> body:Bigstringaf.t IOVec.t Stream.t -> Status.t -> t
Sourceval copy_file : ?version:Versions.HTTP.t -> ?headers:Headers.t -> string -> (t, [> Error.common ]) result
Sourceval sendfile : ?version:Versions.HTTP.t -> ?headers:Headers.t -> string -> (t, [> Error.common ]) result
Sourcemodule Upgrade : sig ... end
Sourceval or_internal_error : (t, Error.t) result -> t
Sourceval persistent_connection : t -> bool
Sourceval pp_hum : Format.formatter -> t -> unit