@@ -42,6 +42,8 @@ The following methods are available on instances of `WebRequest`:
4242#### ` webRequest.onBeforeRequest([filter, ]listener) `
4343
4444* ` filter ` Object
45+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
46+ requests that do not match the URL patterns.
4547* ` listener ` Function
4648 * ` details ` Object
4749 * ` id ` Integer
@@ -66,6 +68,8 @@ The `callback` has to be called with an `response` object.
6668#### ` webRequest.onBeforeSendHeaders([filter, ]listener) `
6769
6870* ` filter ` Object
71+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
72+ requests that do not match the URL patterns.
6973* ` listener ` Function
7074
7175The ` listener ` will be called with ` listener(details, callback) ` before sending
@@ -90,6 +94,8 @@ The `callback` has to be called with an `response` object.
9094#### ` webRequest.onSendHeaders([filter, ]listener) `
9195
9296* ` filter ` Object
97+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
98+ requests that do not match the URL patterns.
9399* ` listener ` Function
94100 * ` details ` Object
95101 * ` id ` Integer
@@ -106,6 +112,8 @@ response are visible by the time this listener is fired.
106112#### ` webRequest.onHeadersReceived([filter, ]listener) `
107113
108114* ` filter ` Object
115+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
116+ requests that do not match the URL patterns.
109117* ` listener ` Function
110118
111119The ` listener ` will be called with ` listener(details, callback) ` when HTTP
@@ -134,6 +142,8 @@ The `callback` has to be called with an `response` object.
134142#### ` webRequest.onResponseStarted([filter, ]listener) `
135143
136144* ` filter ` Object
145+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
146+ requests that do not match the URL patterns.
137147* ` listener ` Function
138148 * ` details ` Object
139149 * ` id ` Integer
@@ -154,6 +164,8 @@ and response headers are available.
154164#### ` webRequest.onBeforeRedirect([filter, ]listener) `
155165
156166* ` filter ` Object
167+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
168+ requests that do not match the URL patterns.
157169* ` listener ` Function
158170 * ` details ` Object
159171 * ` id ` String
@@ -174,6 +186,8 @@ redirect is about to occur.
174186#### ` webRequest.onCompleted([filter, ]listener) `
175187
176188* ` filter ` Object
189+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
190+ requests that do not match the URL patterns.
177191* ` listener ` Function
178192 * ` details ` Object
179193 * ` id ` Integer
@@ -192,6 +206,8 @@ completed.
192206#### ` webRequest.onErrorOccurred([filter, ]listener) `
193207
194208* ` filter ` Object
209+ * ` urls ` String[ ] - Array of URL patterns that will be used to filter out the
210+ requests that do not match the URL patterns.
195211* ` listener ` Function
196212 * ` details ` Object
197213 * ` id ` Integer
0 commit comments