|
@@ -54,7 +54,7 @@ The following methods are available on instances of `WebRequest`:
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `uploadData` [UploadData[]](structures/upload-data.md)
|
|
@@ -99,7 +99,7 @@ Some examples of valid `urls`:
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `requestHeaders` Record<string, string>
|
|
@@ -128,7 +128,7 @@ The `callback` has to be called with a `response` object.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `requestHeaders` Record<string, string>
|
|
@@ -150,7 +150,7 @@ response are visible by the time this listener is fired.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `statusLine` String
|
|
@@ -183,7 +183,7 @@ The `callback` has to be called with a `response` object.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `responseHeaders` Record<string, string[]> (optional)
|
|
@@ -209,7 +209,7 @@ and response headers are available.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `redirectURL` String
|
|
@@ -236,7 +236,7 @@ redirect is about to occur.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `responseHeaders` Record<string, string[]> (optional)
|
|
@@ -261,7 +261,7 @@ completed.
|
|
|
* `webContentsId` Integer (optional)
|
|
|
* `webContents` WebContents (optional)
|
|
|
* `frame` WebFrameMain (optional)
|
|
|
- * `resourceType` String
|
|
|
+ * `resourceType` String - Can be `mainFrame`, `subFrame`, `stylesheet`, `script`, `image`, `font`, `object`, `xhr`, `ping`, `cspReport`, `media`, `webSocket` or `other`.
|
|
|
* `referrer` String
|
|
|
* `timestamp` Double
|
|
|
* `fromCache` Boolean
|