Loading…
|
Translation changed |
|
|
String added in the repository |
|
Loading…
|
Translation changed |
|
|
String added in the repository |
|
This function sets the maximum allowed size of the content body. When a body larger than the specified size is detected, an error is generated and parsing terminates. This setting helps protect servers from resource exhaustion attacks. The default limit when parsing requests is 1MB, and for parsing responses该函数用于设置消息体允许的最大大小。一旦检测到消息体超过该限制,就会触发错误并终止解析过程。这项设置有助于防范资源耗尽攻击,提升服务器安全性。解析请求时的默认限制为 1MB,解析响应时的默认限制为 8MB.。