OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 [ | 5 [ |
6 { | 6 { |
7 "namespace": "webRequest", | 7 "namespace": "webRequest", |
8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", | 8 "description": "Use the <code>chrome.webRequest</code> API to observe and an
alyze traffic and to intercept, block, or modify requests in-flight.", |
9 "properties": { | 9 "properties": { |
10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { | 10 "MAX_HANDLER_BEHAVIOR_CHANGED_CALLS_PER_10_MINUTES": { |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 "description": "Returns value for event handlers that have the 'blocking
' extraInfoSpec applied. Allows the event handler to modify network requests.", | 59 "description": "Returns value for event handlers that have the 'blocking
' extraInfoSpec applied. Allows the event handler to modify network requests.", |
60 "properties": { | 60 "properties": { |
61 "cancel": { | 61 "cancel": { |
62 "type": "boolean", | 62 "type": "boolean", |
63 "optional": true, | 63 "optional": true, |
64 "description": "If true, the request is cancelled. Used in onBeforeR
equest, this prevents the request from being sent." | 64 "description": "If true, the request is cancelled. Used in onBeforeR
equest, this prevents the request from being sent." |
65 }, | 65 }, |
66 "redirectUrl": { | 66 "redirectUrl": { |
67 "type": "string", | 67 "type": "string", |
68 "optional": true, | 68 "optional": true, |
69 "description": "Only used as a response to the onBeforeRequest event
. If set, the original request is prevented from being sent and is instead redir
ected to the given URL." | 69 "description": "Only used as a response to the onBeforeRequest and o
nHeadersReceived events. If set, the original request is prevented from being se
nt/completed and is instead redirected to the given URL. Redirections to non-HTT
P schemes such as data: are allowed. Redirects initiated by a redirect action us
e the original request method for the redirect, with one exception: If the redir
ect is initiated at the onHeadersReceived stage, then the redirect will be issue
d using the GET method." |
70 }, | 70 }, |
71 "requestHeaders": { | 71 "requestHeaders": { |
72 "$ref": "HttpHeaders", | 72 "$ref": "HttpHeaders", |
73 "optional": true, | 73 "optional": true, |
74 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." | 74 "description": "Only used as a response to the onBeforeSendHeaders e
vent. If set, the request is made with these request headers instead." |
75 }, | 75 }, |
76 "responseHeaders": { | 76 "responseHeaders": { |
77 "$ref": "HttpHeaders", | 77 "$ref": "HttpHeaders", |
78 "optional": true, | 78 "optional": true, |
79 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responded with these response headers
instead. Only return <code>responseHeaders</code> if you really want to modify t
he headers in order to limit the number of conflicts (only one extension may mod
ify <code>responseHeaders</code> for each request)." | 79 "description": "Only used as a response to the onHeadersReceived eve
nt. If set, the server is assumed to have responded with these response headers
instead. Only return <code>responseHeaders</code> if you really want to modify t
he headers in order to limit the number of conflicts (only one extension may mod
ify <code>responseHeaders</code> for each request)." |
(...skipping 454 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
534 { | 534 { |
535 "$ref": "RequestFilter", | 535 "$ref": "RequestFilter", |
536 "name": "filter", | 536 "name": "filter", |
537 "description": "A set of filters that restricts the events that will
be sent to this listener." | 537 "description": "A set of filters that restricts the events that will
be sent to this listener." |
538 } | 538 } |
539 ] | 539 ] |
540 } | 540 } |
541 ] | 541 ] |
542 } | 542 } |
543 ] | 543 ] |
OLD | NEW |