aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_bindings/webidls/Response.webidl
diff options
context:
space:
mode:
Diffstat (limited to 'components/script_bindings/webidls/Response.webidl')
-rw-r--r--components/script_bindings/webidls/Response.webidl1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/script_bindings/webidls/Response.webidl b/components/script_bindings/webidls/Response.webidl
index 0ced0c13794..d37538d4b6b 100644
--- a/components/script_bindings/webidls/Response.webidl
+++ b/components/script_bindings/webidls/Response.webidl
@@ -9,6 +9,7 @@ interface Response {
[Throws] constructor(optional BodyInit? body = null, optional ResponseInit init = {});
[NewObject] static Response error();
[NewObject, Throws] static Response redirect(USVString url, optional unsigned short status = 302);
+ [NewObject, Throws, BinaryName="createFromJson"] static Response json(any data, optional ResponseInit init = {});
readonly attribute ResponseType type;