FetchEvent

Overview

This is the event type for fetch events dispatched on the service worker global scope. It contains information about the fetch, including the request and how the receiver will treat the response. It provides the event.respondWith() method, which allows us to provide a response to this fetch.

Location

 

bubbles    (declared in Event)

 

property bubbles: Boolean read;

 

Boolean bubbles { get; }

 

var bubbles: Boolean { get{} }

 

Boolean bubbles { __get; }

 

ReadOnly Property bubbles() As Boolean

cancelable    (declared in Event)

 

property cancelable: Boolean read;

 

Boolean cancelable { get; }

 

var cancelable: Boolean { get{} }

 

Boolean cancelable { __get; }

 

ReadOnly Property cancelable() As Boolean

cancelBubble    (declared in Event)

 

property cancelBubble: Boolean read write;

 

Boolean cancelBubble { get; set; }

 

var cancelBubble: Boolean { get{} set{} }

 

Boolean cancelBubble { __get; __set; }

 

Property cancelBubble() As Boolean

composed    (declared in Event)

 

property composed: Boolean read;

 

Boolean composed { get; }

 

var composed: Boolean { get{} }

 

Boolean composed { __get; }

 

ReadOnly Property composed() As Boolean

currentTarget    (declared in Event)

 

property currentTarget: dynamic read;

 

dynamic currentTarget { get; }

 

var currentTarget: dynamic { get{} }

 

dynamic currentTarget { __get; }

 

ReadOnly Property currentTarget() As dynamic

defaultPrevented    (declared in Event)

 

property defaultPrevented: Boolean read;

 

Boolean defaultPrevented { get; }

 

var defaultPrevented: Boolean { get{} }

 

Boolean defaultPrevented { __get; }

 

ReadOnly Property defaultPrevented() As Boolean

eventPhase    (declared in Event)

 

property eventPhase: Int32 read;

 

Int32 eventPhase { get; }

 

var eventPhase: Int32 { get{} }

 

Int32 eventPhase { __get; }

 

ReadOnly Property eventPhase() As Int32

isTrusted    (declared in Event)

 

property isTrusted: Boolean read;

 

Boolean isTrusted { get; }

 

var isTrusted: Boolean { get{} }

 

Boolean isTrusted { __get; }

 

ReadOnly Property isTrusted() As Boolean

respondWith

Prevent the browser's default fetch handling, and provide (a promise for) a response yourself.

 

method respondWith: dynamic

 

dynamic respondWith()

 

func respondWith() -> dynamic

 

dynamic respondWith()

 

Function respondWith() As dynamic

returnValue    (declared in Event)

 

property returnValue: String read write;

 

String returnValue { get; set; }

 

var returnValue: String { get{} set{} }

 

String returnValue { __get; __set; }

 

Property returnValue() As String

target    (declared in Event)

 

property target: EventTarget read;

 

EventTarget target { get; }

 

var target: EventTarget { get{} }

 

EventTarget target { __get; }

 

ReadOnly Property target() As EventTarget

timeStamp    (declared in Event)

 

property timeStamp: Int64 read;

 

Int64 timeStamp { get; }

 

var timeStamp: Int64 { get{} }

 

Int64 timeStamp { __get; }

 

ReadOnly Property timeStamp() As Int64

type    (declared in Event)

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

waitUntil

Extends the lifetime of the event. Used to notify the browser of tasks that extend beyond the returning of a response, such as streaming and caching.

 

method waitUntil

 

void waitUntil()

 

func waitUntil()

 

void waitUntil()

 

Sub waitUntil()

 

bubbles    (declared in Event)

 

property bubbles: Boolean read;

 

Boolean bubbles { get; }

 

var bubbles: Boolean { get{} }

 

Boolean bubbles { __get; }

 

ReadOnly Property bubbles() As Boolean

cancelable    (declared in Event)

 

property cancelable: Boolean read;

 

Boolean cancelable { get; }

 

var cancelable: Boolean { get{} }

 

Boolean cancelable { __get; }

 

ReadOnly Property cancelable() As Boolean

cancelBubble    (declared in Event)

 

property cancelBubble: Boolean read write;

 

Boolean cancelBubble { get; set; }

 

var cancelBubble: Boolean { get{} set{} }

 

Boolean cancelBubble { __get; __set; }

 

Property cancelBubble() As Boolean

composed    (declared in Event)

 

property composed: Boolean read;

 

Boolean composed { get; }

 

var composed: Boolean { get{} }

 

Boolean composed { __get; }

 

ReadOnly Property composed() As Boolean

currentTarget    (declared in Event)

 

property currentTarget: dynamic read;

 

dynamic currentTarget { get; }

 

var currentTarget: dynamic { get{} }

 

dynamic currentTarget { __get; }

 

ReadOnly Property currentTarget() As dynamic

defaultPrevented    (declared in Event)

 

property defaultPrevented: Boolean read;

 

Boolean defaultPrevented { get; }

 

var defaultPrevented: Boolean { get{} }

 

Boolean defaultPrevented { __get; }

 

ReadOnly Property defaultPrevented() As Boolean

eventPhase    (declared in Event)

 

property eventPhase: Int32 read;

 

Int32 eventPhase { get; }

 

var eventPhase: Int32 { get{} }

 

Int32 eventPhase { __get; }

 

ReadOnly Property eventPhase() As Int32

isTrusted    (declared in Event)

 

property isTrusted: Boolean read;

 

Boolean isTrusted { get; }

 

var isTrusted: Boolean { get{} }

 

Boolean isTrusted { __get; }

 

ReadOnly Property isTrusted() As Boolean

returnValue    (declared in Event)

 

property returnValue: String read write;

 

String returnValue { get; set; }

 

var returnValue: String { get{} set{} }

 

String returnValue { __get; __set; }

 

Property returnValue() As String

target    (declared in Event)

 

property target: EventTarget read;

 

EventTarget target { get; }

 

var target: EventTarget { get{} }

 

EventTarget target { __get; }

 

ReadOnly Property target() As EventTarget

timeStamp    (declared in Event)

 

property timeStamp: Int64 read;

 

Int64 timeStamp { get; }

 

var timeStamp: Int64 { get{} }

 

Int64 timeStamp { __get; }

 

ReadOnly Property timeStamp() As Int64

type    (declared in Event)

 

property type: dynamic read;

 

dynamic type { get; }

 

var type: dynamic { get{} }

 

dynamic type { __get; }

 

ReadOnly Property type() As dynamic

 

respondWith

Prevent the browser's default fetch handling, and provide (a promise for) a response yourself.

 

method respondWith: dynamic

 

dynamic respondWith()

 

func respondWith() -> dynamic

 

dynamic respondWith()

 

Function respondWith() As dynamic

waitUntil

Extends the lifetime of the event. Used to notify the browser of tasks that extend beyond the returning of a response, such as streaming and caching.

 

method waitUntil

 

void waitUntil()

 

func waitUntil()

 

void waitUntil()

 

Sub waitUntil()