← Back to Network domain
Network.loadNetworkResource
Fetches the resource and returns the content.
Domain: Network
experimental
Parameters
| Name | Type | Description |
frameId (optional) | Page.FrameId | Frame id to get the resource for. Mandatory for frame targets, and
should be omitted for worker targets. |
url | string | URL of the resource to get content for. |
options | LoadNetworkResourceOptions | Options for the request. |
Returns
| Name | Type | Description |
resource | LoadNetworkResourcePageResult | |
Example Request
{
"id": 1,
"method": "Network.loadNetworkResource",
"params": {
"url": "https://example.com",
"options": "options-value"
}
}
Example Response
{
"id": 1,
"result": {
"resource": "resource-value"
}
}
Usage in Node.js
const result = await send('Network.loadNetworkResource', {"url": "https://example.com", "options": "options-value"});
console.log(result);
// {"resource": "resource-value"}