Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/pptr/mod.ts>HTTPRequest#continue

Headless Chrome Deno API
Latest
method HTTPRequest.prototype.continue
Re-export
import { HTTPRequest } from "https://deno.land/x/pptr@1.2.0/mod.ts";

Continues request with optional request overrides.

Examples

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.

Returns

Promise<void>