docs(api.md): clarification note on request interception (#3042)

Fixes #3040.
This commit is contained in:
Andrey Lushnikov 2018-08-07 14:24:27 -07:00 committed by GitHub
parent 735e17e223
commit 608f5b79fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1486,7 +1486,9 @@ The extra HTTP headers will be sent with every request the page initiates.
Activating request interception enables `request.abort`, `request.continue` and
`request.respond` methods. This provides the capability to modify network requests that are made by a page.
Once request interception is enabled, every request will stall unless it's continued, responded or aborted.
An example of a naïve request interceptor that aborts all image requests:
```js
const puppeteer = require('puppeteer');