Merge pull request #10505 from qazbnm456/update-docs
docs: update web-request.md
This commit is contained in:
commit
5843c98153
1 changed files with 10 additions and 2 deletions
|
@ -49,6 +49,7 @@ The following methods are available on instances of `WebRequest`:
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `uploadData` [UploadData[]](structures/upload-data.md)
|
* `uploadData` [UploadData[]](structures/upload-data.md)
|
||||||
|
@ -80,6 +81,7 @@ TCP connection is made to the server, but before any http data is sent.
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `requestHeaders` Object
|
* `requestHeaders` Object
|
||||||
|
@ -101,6 +103,7 @@ The `callback` has to be called with an `response` object.
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `requestHeaders` Object
|
* `requestHeaders` Object
|
||||||
|
@ -120,9 +123,10 @@ The `listener` will be called with `listener(details, callback)` when HTTP
|
||||||
response headers of a request have been received.
|
response headers of a request have been received.
|
||||||
|
|
||||||
* `details` Object
|
* `details` Object
|
||||||
* `id` String
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `statusLine` String
|
* `statusLine` String
|
||||||
|
@ -149,6 +153,7 @@ The `callback` has to be called with an `response` object.
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `responseHeaders` Object
|
* `responseHeaders` Object
|
||||||
|
@ -168,9 +173,10 @@ and response headers are available.
|
||||||
requests that do not match the URL patterns.
|
requests that do not match the URL patterns.
|
||||||
* `listener` Function
|
* `listener` Function
|
||||||
* `details` Object
|
* `details` Object
|
||||||
* `id` String
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `redirectURL` String
|
* `redirectURL` String
|
||||||
|
@ -193,6 +199,7 @@ redirect is about to occur.
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `responseHeaders` Object
|
* `responseHeaders` Object
|
||||||
|
@ -213,6 +220,7 @@ completed.
|
||||||
* `id` Integer
|
* `id` Integer
|
||||||
* `url` String
|
* `url` String
|
||||||
* `method` String
|
* `method` String
|
||||||
|
* `webContentsId` Integer (optional)
|
||||||
* `resourceType` String
|
* `resourceType` String
|
||||||
* `timestamp` Double
|
* `timestamp` Double
|
||||||
* `fromCache` Boolean
|
* `fromCache` Boolean
|
||||||
|
|
Loading…
Reference in a new issue