Legend:
Library
Module
Module type
Parameter
Class
Class type
Library
Module
Module type
Parameter
Class
Class type
type t = private Piaf.Response.t = {
status : Piaf.Status.t;
headers : Piaf.Headers.t;
version : Piaf.Versions.HTTP.t;
body : Piaf.Body.t;
}
val create :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
?body:Piaf.Body.t ->
Piaf.Status.t ->
t
val of_string :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
body:string ->
Piaf.Status.t ->
t
val of_bigstring :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
body:Bigstringaf.t ->
Piaf.Status.t ->
t
val of_string_stream :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
body:string Lwt_stream.t ->
Piaf.Status.t ->
t
val of_stream :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
body:Bigstringaf.t Piaf.IOVec.t Lwt_stream.t ->
Piaf.Status.t ->
t
val upgrade :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
((Gluten.impl -> unit) -> unit) ->
t
val of_file :
?version:Piaf.Versions.HTTP.t ->
?headers:Piaf.Headers.t ->
string ->
t Lwt.t
val persistent_connection : t -> bool
val pp_hum : Stdlib.Format.formatter -> t -> unit