OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // http://fetch.spec.whatwg.org/#request-class |
| 6 [ |
| 7 Constructor(optional Dictionary requestInitDict), |
| 8 RuntimeEnabled=ServiceWorker, |
| 9 Exposed=ServiceWorker |
| 10 ] interface Request { |
| 11 attribute ScalarValueString url; |
| 12 attribute ByteString method; |
| 13 readonly attribute DOMString origin; |
| 14 readonly attribute HeaderMap headers; |
| 15 |
| 16 // FIXME: Implement the following: |
| 17 // attribute unsigned long timeout; |
| 18 // readonly attribute Mode mode; |
| 19 // attribute boolean synchronous; |
| 20 // readonly attribute unsigned long redirectCount; |
| 21 // attribute boolean forcePreflight; |
| 22 // attribute boolean forceSameOrigin; |
| 23 // attribute boolean omitCredentials; |
| 24 // readonly attribute DOMString referrer; |
| 25 // attribute any body; |
| 26 }; |
OLD | NEW |