ServiceWorkerGlobalScope

Overview

The ServiceWorkerGlobalScope interface of the ServiceWorker API represents the global execution context of a service worker.

Location

Properties


caches

 

property caches: dynamic read;

 

dynamic caches { get; }

 

var caches: dynamic { get{} }

 

dynamic caches { __get; }

 

ReadOnly Property caches() As dynamic

clients

 

property clients: dynamic read;

 

dynamic clients { get; }

 

var clients: dynamic { get{} }

 

dynamic clients { __get; }

 

ReadOnly Property clients() As dynamic

registration

 

property registration: dynamic read;

 

dynamic registration { get; }

 

var registration: dynamic { get{} }

 

dynamic registration { __get; }

 

ReadOnly Property registration() As dynamic

Required Methods


fetch

Starts the process of fetching a resource. This returns a promise that resolves to the Response object representing the response to your request. This algorithm is the entry point for the fetch handling handed to the service worker context.

 

method fetch(parresource: dynamic; parinit: dynamic; parmethod: dynamic; parheaders: dynamic; parbody: dynamic; parmode: dynamic; parcredentials: dynamic; parcache: dynamic; parredirect: dynamic; parreferrer: dynamic; parreferrerPolicy: dynamic; parintegrity: dynamic; parkeepalive: dynamic; parsignal: dynamic): dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

func fetch(_ parresource: dynamic, _ parinit: dynamic, _ parmethod: dynamic, _ parheaders: dynamic, _ parbody: dynamic, _ parmode: dynamic, _ parcredentials: dynamic, _ parcache: dynamic, _ parredirect: dynamic, _ parreferrer: dynamic, _ parreferrerPolicy: dynamic, _ parintegrity: dynamic, _ parkeepalive: dynamic, _ parsignal: dynamic) -> dynamic

 

dynamic fetch(dynamic parresource, dynamic parinit, dynamic parmethod, dynamic parheaders, dynamic parbody, dynamic parmode, dynamic parcredentials, dynamic parcache, dynamic parredirect, dynamic parreferrer, dynamic parreferrerPolicy, dynamic parintegrity, dynamic parkeepalive, dynamic parsignal)

 

Function fetch(parresource As dynamic, parinit As dynamic, parmethod As dynamic, parheaders As dynamic, parbody As dynamic, parmode As dynamic, parcredentials As dynamic, parcache As dynamic, parredirect As dynamic, parreferrer As dynamic, parreferrerPolicy As dynamic, parintegrity As dynamic, parkeepalive As dynamic, parsignal As dynamic) As dynamic

Parameters:

  • parresource:
  • parinit:
  • parmethod:
  • parheaders:
  • parbody:
  • parmode:
  • parcredentials:
  • parcache:
  • parredirect:
  • parreferrer:
  • parreferrerPolicy:
  • parintegrity:
  • parkeepalive:
  • parsignal: