Fetch.Response
Request responses.
module Type : sig ... end
Response type enum.
init ()
is a response initialisation object with given parameters.
The type for Response
objects.
v ~init ~body
is a response with parameters init
and body body
.
val error : unit -> t
error
is a network error response.
redirect ~status url
is a redirect response to url
with status status
.
as_body r
is the body interface of r
.
val ok : t -> bool
ok r
is true
if the response r
is successful.
val redirected : t -> bool
redirected r
is true
if the reponse is the result of a redirection.
status_text r
is the status text of r
.