From 444c7e0e4729748d4c124bf8b4948a3d74dcf726 Mon Sep 17 00:00:00 2001 From: Vse Mozhe Buty Date: Thu, 31 Dec 2020 07:30:27 +0200 Subject: [PATCH] docs(api): fix some typos (#6712) --- docs/api.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api.md b/docs/api.md index 8139582a1df..7a22cf814dd 100644 --- a/docs/api.md +++ b/docs/api.md @@ -3905,7 +3905,7 @@ page.on('request', request => { [HTTPResponse] class represents responses which are received by page. #### httpResponse.buffer() -- returns: > Promise which resolves to a buffer with response body. +- returns: <[Promise]<[Buffer]>> Promise which resolves to a buffer with response body. #### httpResponse.frame() - returns: A [Frame] that initiated this response, or `null` if navigating to error pages. @@ -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 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`.