Skip to content

Commit

Permalink
docs: fix the list newlines in Request (#13292)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrKoN authored Nov 13, 2024
1 parent aae6b33 commit a5abd36
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,9 @@ Represents an HTTP request sent by a page.

Whenever the page sends a request, such as for a network resource, the following events are emitted by Puppeteer's `page`:

- `request`: emitted when the request is issued by the page. - `requestfinished` - emitted when the response body is downloaded and the request is complete.
- `request`: emitted when the request is issued by the page.

- `requestfinished` - emitted when the response body is downloaded and the request is complete.

If request fails at some point, then instead of `requestfinished` event the `requestfailed` event is emitted.

Expand Down
4 changes: 3 additions & 1 deletion docs/api/puppeteer.httprequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export declare abstract class HTTPRequest

Whenever the page sends a request, such as for a network resource, the following events are emitted by Puppeteer's `page`:

- `request`: emitted when the request is issued by the page. - `requestfinished` - emitted when the response body is downloaded and the request is complete.
- `request`: emitted when the request is issued by the page.

- `requestfinished` - emitted when the response body is downloaded and the request is complete.

If request fails at some point, then instead of `requestfinished` event the `requestfailed` event is emitted.

Expand Down
1 change: 1 addition & 0 deletions packages/puppeteer-core/src/api/HTTPRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ export const DEFAULT_INTERCEPT_RESOLUTION_PRIORITY = 0;
* following events are emitted by Puppeteer's `page`:
*
* - `request`: emitted when the request is issued by the page.
*
* - `requestfinished` - emitted when the response body is downloaded and the
* request is complete.
*
Expand Down

0 comments on commit a5abd36

Please sign in to comment.