UNPKG
npm-polymer-elements
Version:
latest (0.0.1)
0.0.1
Polymer Elements package for npm
npm-polymer-elements
/
platinum-sw
/
test
/
platinum-sw-fetch
/
custom-fetch-handler.js
14 lines
(12 loc)
•
289 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
self
.custom203FetchHandler =
function
(request)
{
return
new Response(
''
, {
status
:
203
, statusText:
'Via customFetchHandler'
}); };
self
.custom410FetchHandler =
function
(request)
{
return
new Response(
''
, {
status
:
410
, statusText:
'Via customFetchHandler'
}); };