|
@@ -53,7 +53,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)
|
|
@@ -98,7 +98,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>
|
|
@@ -127,7 +127,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>
|
|
@@ -149,7 +149,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
|
|
@@ -182,7 +182,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)
|
|
@@ -208,7 +208,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
|
|
@@ -235,7 +235,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)
|
|
@@ -260,7 +260,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
|