> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# whole-payload-in-memory

> An operation loads an entire file, stream, or response into memory.

## What it flags

A handler reads a request-chosen path with `fs.readFile`, or a download or stream is buffered whole only to be written out.

## How to review or fix

Stream it with `pipeline`. The `Response` check needs fetch types.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "whole-payload-in-memory": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.