I am using Jetty 7.6 with a Scalatra web map. In some requests I need to send a large text as the response body to the client, I use HttpServletResponse.getWriter () to record the response.
I noticed that on the client side I am getting 413 Header Full error. Apparently, one solution to this problem in Jetty is to increase the size of the ship's header buffer.
I would like to know that HttpServletResponse.getWriter () is related to the size of the request header ?! As I understand it, HttpServletResponse.getWriter () writes to the response body, not the response header.
I appreciate if anyone can explain this problem.
source
share