Skip to content

docs: Clarify max-body-size applies to requests and responses#5186

Open
JoshVanL wants to merge 2 commits into
dapr:v1.17from
JoshVanL:clarify-max-body-size-annotation-1.17
Open

docs: Clarify max-body-size applies to requests and responses#5186
JoshVanL wants to merge 2 commits into
dapr:v1.17from
JoshVanL:clarify-max-body-size-annotation-1.17

Conversation

@JoshVanL
Copy link
Copy Markdown
Contributor

Updated the max-body-size annotation description to clarify that it applies to:

  • Incoming HTTP/gRPC requests to the Dapr sidecar
  • Actor operation responses
  • Binding component responses (added in v1.16.2)

This clarification helps users understand that the annotation controls both request and response body sizes, not just incoming requests.

Forward port of https://github.com/dapr/docs/pull/4935/commits

docs: Clarify max-body-size applies to requests and responses

Updated the max-body-size annotation description to clarify that it applies to:
- Incoming HTTP/gRPC requests to the Dapr sidecar
- Actor operation responses
- Binding component responses (added in v1.16.2)

This clarification helps users understand that the annotation controls
both request and response body sizes, not just incoming requests.

Signed-off-by: Junaid Khan <jukhan@cisco.com>
Copilot AI review requested due to automatic review settings May 25, 2026 11:33
@JoshVanL JoshVanL requested review from a team as code owners May 25, 2026 11:33
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies the dapr.io/max-body-size annotation documentation to explicitly cover both HTTP/gRPC request bodies and response bodies (including actor operation responses and binding component responses), reducing user confusion about its scope.

Changes:

  • Updated the --max-body-size / dapr.io/max-body-size entry to describe applicability to both requests and responses.
  • Added a version note about when binding component response size enforcement was introduced.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

| `--dapr-http-port` | `--dapr-http-port` | | not supported | HTTP port for the Dapr API to listen on (default `3500`) |
| `--dapr-http-max-request-size` | `--dapr-http-max-request-size` | | `dapr.io/http-max-request-size` | **Deprecated** in favor of `--max-body-size`. Inreasing the request max body size to handle large file uploads using http and grpc protocols. Default is `4` MB |
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Inreasing the request max body size to handle large file uploads using http and grpc protocols. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi` |
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Maximum size for HTTP/gRPC request and response bodies. Applies to incoming requests to the Dapr sidecar, actor operations, and binding component responses. Useful for handling large file uploads/downloads. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi`. Note: Binding component response size enforcement added in Dapr v1.16.3. |
| `--dapr-http-port` | `--dapr-http-port` | | not supported | HTTP port for the Dapr API to listen on (default `3500`) |
| `--dapr-http-max-request-size` | `--dapr-http-max-request-size` | | `dapr.io/http-max-request-size` | **Deprecated** in favor of `--max-body-size`. Inreasing the request max body size to handle large file uploads using http and grpc protocols. Default is `4` MB |
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Inreasing the request max body size to handle large file uploads using http and grpc protocols. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi` |
| `--max-body-size` | not supported | | `dapr.io/max-body-size` | Maximum size for HTTP/gRPC request and response bodies. Applies to incoming requests to the Dapr sidecar, actor operations, and binding component responses. Useful for handling large file uploads/downloads. Set the value using size units (e.g., `16Mi` for 16MB). The default is `4Mi`. Note: Binding component response size enforcement added in Dapr v1.16.3. |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants