Skip to content

Latest commit

 

History

History
23 lines (15 loc) · 518 Bytes

puppeteer.httpresponse.buffer.md

File metadata and controls

23 lines (15 loc) · 518 Bytes
sidebar_label
HTTPResponse.buffer

HTTPResponse.buffer() method

Promise which resolves to a buffer with response body.

Signature:

class HTTPResponse {
  abstract buffer(): Promise<Buffer>;
}

Returns:

Promise<Buffer>

Remarks

The buffer might be re-encoded by the browser based on HTTP-headers or other heuristics. If the browser failed to detect the correct encoding, the buffer might be encoded incorrectly. See #6478.