Fetch.Request
Resource requests.
module Cache : sig ... end
Request cache mode enum.
module Credentials : sig ... end
Request credentials mode enum.
module Destination : sig ... end
Request destination enum.
module Mode : sig ... end
Request mode enum.
module Redirect : sig ... end
Request redirect enum.
val init : ?body:Body.init -> ?cache:Cache.t -> ?credentials:Credentials.t -> ?headers:Headers.t -> ?integrity:Jstr.t ->
?keepalive:bool -> ?method':Jstr.t -> ?mode:Mode.t -> ?redirect:Redirect.t -> ?referrer:Jstr.t -> ?referrer_policy:Jstr.t
-> ?signal:Brr.Abort.Signal.t -> unit -> init
init ()
is a request initialisation object with given parameters.
The type for Request
objects.
val credentials : t -> Credentials.t
credentials r
are the credentials of r
.
val destination : t -> Destination.t
destination r
is the destination of r
.
is_history_navigation r
is the isHistoryNavigation
property of r
.
is_reload_navigation r
is the isReloadNavigation
property of r
.
val redirect : t -> Redirect.t
redirect r
is the redirect behaviour of r
.
referrer_policy r
is the referrer policy of r
.
val signal : t -> Brr.Abort.Signal.t option
signal r
is the abort signal of r
.