Can we limit size of incoming request?

Hi,


Can we limit size of incoming request and response payload in order to avoid any memory issues?

Limit the size of incoming requests
Response code, 413 Request Entity Too Large

To prevent memory issue limit the request and response size of payloads.

Industry default is 10MB.


Thanks,

Umesh Kulkarni

Solution

Hi Umesh Kulkarni,

Yes, you can enforce size limits on the HTTP request header fields.

Regards,

Solution

You can use the FactoryConfiguration forge component to set your web server properties including things like the "maxRequestLength" , "maxAllowedContentLength" etc.