sidebar_label |
---|
HTTPResponse.buffer |
Promise which resolves to a buffer with response body.
class HTTPResponse {
abstract buffer(): Promise<Buffer>;
}
Returns:
Promise<Buffer>
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.