public class FetchEvent extends ExtendableEvent
| Modifier and Type | Class and Description |
|---|---|
static interface |
FetchEvent.RespondWithRUnionType |
Event.ComposedPathArrayUnionType, Event.DeepPathFn| Modifier and Type | Field and Description |
|---|---|
ServiceWorkerClient |
client |
java.lang.String |
clientId |
boolean |
isReload |
Promise<Response> |
preloadResponse |
Request |
request |
java.lang.String |
reservedClientId |
java.lang.String |
targetClientId |
activeWorkerAT_TARGET, bubbles, BUBBLING_PHASE, cancelable, CAPTURING_PHASE, composed, currentTarget, deepPath, defaultPrevented, eventPhase, namespaceURI, path, target, timeStamp, type| Constructor and Description |
|---|
FetchEvent(java.lang.String type) |
FetchEvent(java.lang.String type,
FetchEventInit eventInitDict) |
| Modifier and Type | Method and Description |
|---|---|
Promise<Response> |
default_() |
Promise<Response> |
forwardTo(java.lang.String url) |
void |
respondWith(FetchEvent.RespondWithRUnionType r) |
void |
respondWith(IThenable<Response> r) |
void |
respondWith(Response r) |
waitUntilcomposedPath, initEvent, initEvent, initEvent, preventDefault, stopImmediatePropagation, stopPropagationpublic ServiceWorkerClient client
public java.lang.String clientId
public boolean isReload
public Request request
public java.lang.String reservedClientId
public java.lang.String targetClientId
public FetchEvent(java.lang.String type,
FetchEventInit eventInitDict)
public FetchEvent(java.lang.String type)
public void respondWith(FetchEvent.RespondWithRUnionType r)
public final void respondWith(Response r)