Skip to content

Commit

Permalink
docs(api): fix some typos (puppeteer#6712)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt authored Dec 31, 2020
1 parent d901696 commit 444c7e0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -3905,7 +3905,7 @@ page.on('request', request => {
[HTTPResponse] class represents responses which are received by page.

#### httpResponse.buffer()
- returns: <Promise<[Buffer]>> Promise which resolves to a buffer with response body.
- returns: <[Promise]<[Buffer]>> Promise which resolves to a buffer with response body.

#### httpResponse.frame()
- returns: <?[Frame]> A [Frame] that initiated this response, or `null` if navigating to error pages.
Expand All @@ -3924,7 +3924,7 @@ True if the response was served by a service worker.
- returns: <[Object]> An object with HTTP headers associated with the response. All header names are lower-case.

#### httpResponse.json()
- returns: <Promise<[Object]>> Promise which resolves to a JSON representation of response body.
- returns: <[Promise]<[Object]>> Promise which resolves to a JSON representation of response body.

This method will throw if the response body is not parsable via `JSON.parse`.

Expand Down

0 comments on commit 444c7e0

Please sign in to comment.