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

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

Issue 1098473003: Implement redirect() API for Fetch Response (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 8 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
Index: Source/modules/fetch/Response.idl
diff --git a/Source/modules/fetch/Response.idl b/Source/modules/fetch/Response.idl
index 3ef728a4212612d3dcd236cce48603d0b77bdac8..60811c29338d7a446fc19610c44e9a38c7c67c31 100644
--- a/Source/modules/fetch/Response.idl
+++ b/Source/modules/fetch/Response.idl
@@ -19,7 +19,7 @@ typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyIn
TypeChecking=Interface,
] interface Response {
[CallWith=ExecutionContext] static Response error();
- // FIXME: Implement redirect().
+ [CallWith=ExecutionContext, RaisesException] static Response redirect(USVString url, optional unsigned short status = 302);
readonly attribute ResponseType type;
readonly attribute USVString url;
readonly attribute unsigned short status;
« LayoutTests/http/tests/fetch/script-tests/response.js ('K') | « Source/modules/fetch/Response.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698