puppeteer/docs/api/puppeteer.httpresponse.buffer.md

256 B

sidebar_label
HTTPResponse.buffer

HTTPResponse.buffer() method

Promise which resolves to a buffer with response body.

Signature:

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

Returns:

Promise<Buffer>