Module Fetch.RequestSource

Resource requests.

Enumerations

Sourcemodule Cache : sig ... end

Request cache mode enum.

Sourcemodule Credentials : sig ... end

Request credentials mode enum.

Sourcemodule Destination : sig ... end

Request destination enum.

Sourcemodule Mode : sig ... end

Request mode enum.

Sourcemodule Redirect : sig ... end

Request redirect enum.

Requests

Sourcetype init

The type for request initialisation objects.

Sourceval 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.

Sourcetype t

The type for Request objects.

Sourceval v : ?init:init -> Jstr.t -> t

v ~init uri is a request on uri with parameters init.

Sourceval of_request : ?init:init -> t -> t

of_request ~init r is a copy of r updated by init.

Sourceval as_body : t -> Body.t

as_body r is the Body interface of r.

Properties

Sourceval cache : t -> Cache.t

cache r is the cache behaviour of r.

Sourceval credentials : t -> Credentials.t

credentials r are the credentials of r.

Sourceval destination : t -> Destination.t

destination r is the destination of r.

Sourceval headers : t -> Headers.t

headers r are the headers of r.

Sourceval integrity : t -> Jstr.t

integrity r is the integrity of r.

Sourceval is_history_navigation : t -> bool

is_history_navigation r is the isHistoryNavigation property of r.

Sourceval is_reload_navigation : t -> bool

is_reload_navigation r is the isReloadNavigation property of r.

Sourceval keepalive : t -> bool

keepalive r is the keepalive behaviour of r.

Sourceval method' : t -> Jstr.t

method' r is the method of r.

Sourceval mode : t -> Mode.t

mode r is the mode of r.

Sourceval redirect : t -> Redirect.t

redirect r is the redirect behaviour of r.

Sourceval referrer : t -> Jstr.t

referrer r is the referrer of r.

Sourceval referrer_policy : t -> Jstr.t

referrer_policy r is the referrer policy of r.

Sourceval signal : t -> Brr.Abort.Signal.t option

signal r is the abort signal of r.

Sourceval url : t -> Jstr.t

url r is the url of r.