import { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/src/HTTPRequest.ts";
Continues request with optional request overrides.
Examples
Example 1
Example 1
await page.setRequestInterception(true);
page.on('request', request => {
// Override headers
const headers = Object.assign({}, request.headers(), {
foo: 'bar', // set "foo" header
origin: undefined, // remove "origin" header
});
request.continue({headers});
});
Parameters
optional
overrides: ContinueRequestOverrides = [UNSUPPORTED]- optional overrides to apply to the request.