Skip to content

Commit 3ec7900

Browse files
authored
Merge pull request electron#9154 from miniak/fix-api-docs
Fix api docs
2 parents cfb4010 + fa0de5c commit 3ec7900

File tree

2 files changed

+17
-1
lines changed

2 files changed

+17
-1
lines changed

docs/api/session.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ win.webContents.session.setCertificateVerifyProc((request, callback) => {
287287
#### `ses.setPermissionRequestHandler(handler)`
288288

289289
* `handler` Function
290-
* `webContents` Object - [WebContents](web-contents.md) requesting the permission.
290+
* `webContents` [WebContents](web-contents.md) - WebContents requesting the permission.
291291
* `permission` String - Enum of 'media', 'geolocation', 'notifications', 'midiSysex',
292292
'pointerLock', 'fullscreen', 'openExternal'.
293293
* `callback` Function

docs/api/web-request.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

7175
The `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

111119
The `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

Comments
 (0)