Request Size Limit
Enforces a maximum size in bytes of the incoming request.
Configuration
The configuration shows how to configure the policy in the 'policies.json' document.
config/policies.json
{
"name": "my-request-size-limit-inbound-policy",
"policyType": "request-size-limit-inbound",
"handler": {
"export": "RequestSizeLimitInboundPolicy",
"module": "$import(@zuplo/runtime)",
"options": {
"maxSizeInBytes": 4098,
"trustContentLengthHeader": true
}
}
}
Read more about how policies work