Yuw*_*Yan 5 java tomcat http chunked-encoding
这是server.xml我的tomcat 8中的配置.
<Connector port="8080" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
Run Code Online (Sandbox Code Playgroud)
我只是发现一些RESTful api请求返回Transfer-Encoding: chunked标题,有些则没有.并且看起来它没有遵循我之前理解的规则:"内容大小超过阈值(比如8k)的响应将返回Transfer-Encoding: chunked"
所以我的问题是什么才是真正的触发条件 Transfer-Encoding: chunked