docs(api.md): Add the word "network" (#2624)

This commit is contained in:
Robert Shilston 2018-05-29 23:24:26 +01:00 committed by Andrey Lushnikov
parent c9a843baa0
commit 5ff67dbdfe

View File

@ -1411,7 +1411,7 @@ The extra HTTP headers will be sent with every request the page initiates.
- returns: <[Promise]> - returns: <[Promise]>
Activating request interception enables `request.abort`, `request.continue` and Activating request interception enables `request.abort`, `request.continue` and
`request.respond` methods. `request.respond` methods. This provides the capability to modify network requests that are made by a page.
An example of a naïve request interceptor that aborts all image requests: An example of a naïve request interceptor that aborts all image requests:
```js ```js
@ -2587,7 +2587,7 @@ This method expects `elementHandle` to point to an [input element](https://devel
### class: Request ### class: Request
Whenever the page sends a request, the following events are emitted by puppeteer's page: Whenever the page sends a request, such as for a network resource, the following events are emitted by puppeteer's page:
- ['request'](#event-request) emitted when the request is issued by the page. - ['request'](#event-request) emitted when the request is issued by the page.
- ['response'](#event-response) emitted when/if the response is received for the request. - ['response'](#event-response) emitted when/if the response is received for the request.
- ['requestfinished'](#event-requestfinished) emitted when the response body is downloaded and the request is complete. - ['requestfinished'](#event-requestfinished) emitted when the response body is downloaded and the request is complete.