Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ When the request size is greater than the permissible limit, the `RequestSize` `
The filter takes a `maxSize` parameter.
The `maxSize` is a `DataSize` type, so values can be defined as a number followed by an optional `DataUnit` suffix such as 'KB' or 'MB'. The default is 'B' for bytes.
It is the permissible size limit of the request defined in bytes.

WARNING: The `RequestSize` gateway filter only considers the request's `Content-Length`-header and will not restrict requests (using `chunked` transfer encoding or HTTP/2) if `Content-Length` is omitted.

The following listing configures a `RequestSize` `GatewayFilter`:

.application.yml
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ When the request size is greater than the permissible limit, the `RequestSize` f
The filter takes a `maxSize` parameter.
The `maxSize` is a `DataSize` type, so values can be defined as a number followed by an optional `DataUnit` suffix such as 'KB' or 'MB'. The default is 'B' for bytes.
It is the permissible size limit of the request defined in bytes.

WARNING: The `RequestSize` filter only processes the request's `Content-Length`-header and will not restrict requests (using `chunked` transfer encoding or HTTP/2) if `Content-Length` is omitted.

The following listing configures a `RequestSize` filter:

.application.yml
Expand Down