Body Size Limit

The body size limit filter is used to reject requests whose body size exceeds a configured limit with an error code of 413.

  • This filter should be configured with the type URL type.googleapis.com/envoy.extensions.filters.http.body_size_limit.v3.BodySizeLimit.

  • v3 API reference

Route-Based Filter Control

This filter supports the standard route-based filter chain mechanisms:

  • To disable this filter on a specific route or virtual host, use FilterConfig with disabled: true in typed_per_filter_config.

  • To override the filter configuration per-route, use the filter_chain filter to apply a different BodySizeLimit configuration on specific routes.

See route based filter chain for more details.