Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2223)

Unified Diff: Source/modules/serviceworkers/Response.idl

Issue 287363004: ServiceWorker: support Response.{status,statusText,headers} [blink] (2/3) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/modules/serviceworkers/ResponseInit.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Response.idl
diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Response.idl
index 140786a6f774b5116706797a8b8e4a4fcf30ce8f..67617a6bfa678fda754da02bec1b90f186a1e75b 100644
--- a/Source/modules/serviceworkers/Response.idl
+++ b/Source/modules/serviceworkers/Response.idl
@@ -2,21 +2,19 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#response-objects
+// FIXME: Split this idl/impl into AbstractResponse and Response.
[
Constructor(optional Dictionary responseInitDict),
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker
] interface Response {
- attribute unsigned short statusCode;
+ readonly attribute unsigned short status;
- // FIXME: Spec uses ByteString for these. We must perform the DOMString -> ByteString conversion manually (crbug.com/347426).
- attribute DOMString statusText;
- attribute DOMString method;
+ // FIXME: Spec uses ByteString for this. We must perform the DOMString -> ByteString conversion manually (crbug.com/347426).
+ readonly attribute DOMString statusText;
- // FIXME: Implement HeaderMap which uses the MapClass WebIDL attribute (crbug.com/347435).
- // FIXME: Can't return Dictionaries yet (crbug.com/364025).
- // getter Dictionary headers();
- setter void headers(Dictionary items);
+ readonly attribute HeaderMap headers;
// FIXME: Implement the following:
// attribute DOMString url;
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/modules/serviceworkers/ResponseInit.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698