@Generated(value="org.realityforge.webtack")
@JsType(isNative=true,
namespace="<global>",
name="FetchEvent")
public class FetchEvent
extends ExtendableEvent
AT_TARGET, BUBBLING_PHASE, cancelBubble, CAPTURING_PHASE, NONE, returnValue| Constructor and Description |
|---|
FetchEvent(java.lang.String type,
FetchEventInit eventInitDict)
The FetchEvent() constructor creates a new FetchEvent object.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
clientId()
The clientId read-only property of the FetchEvent interface returns the id of the Client that the current service worker is controlling.
|
Promise<java.lang.Void> |
handled() |
Promise<jsinterop.base.Any> |
preloadResponse()
The preloadResponse read-only property of the FetchEvent interface returns a Promise that resolves to the navigation preload Response if navigation preload was triggered or undefined otherwise.
|
java.lang.String |
replacesClientId()
The replacesClientId read-only property of the FetchEvent interface is the id of the client that is being replaced during a page navigation.
|
Request |
request()
The request read-only property of the FetchEvent interface returns the Request that triggered the event handler.
|
void |
respondWith(Promise<Response> r)
The respondWith() method of FetchEvent prevents the browser's default fetch handling, and allows you to provide a promise for a Response yourself.
|
java.lang.String |
resultingClientId()
The resultingClientId read-only property of the FetchEvent interface is the id of the client that replaces the previous client during a page navigation.
|
waitUntilbubbles, cancelable, composed, composedPath, currentTarget, defaultPrevented, eventPhase, initEvent, initEvent, initEvent, isTrusted, preventDefault, srcElement, stopImmediatePropagation, stopPropagation, target, timeStamp, typeassign, create, create, defineProperties, defineProperty, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyDescriptor, getOwnPropertyDescriptors, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toString_, valueOf_, valuespublic FetchEvent(@Nonnull
java.lang.String type,
@Nonnull
FetchEventInit eventInitDict)
@JsProperty(name="clientId") @Nonnull public java.lang.String clientId()
@JsProperty(name="handled") @Nonnull public Promise<java.lang.Void> handled()
@JsProperty(name="preloadResponse") @Nonnull public Promise<jsinterop.base.Any> preloadResponse()
@JsProperty(name="replacesClientId") @Nonnull public java.lang.String replacesClientId()
@JsProperty(name="request") @Nonnull public Request request()
@JsProperty(name="resultingClientId") @Nonnull public java.lang.String resultingClientId()