Re: Tomcat 9 and response.setTrailerFields

2020-06-25 Thread Mark Thomas
On 25/06/2020 07:44, Julian Reschke wrote: > On 24.06.2020 17:35, Julian Reschke wrote: >> ... > So it does set "Trailer" (so the response was not committed >> yet), but it >> doesn't switch to chunked encoding. >> >> There must be something that I'm doing wrong... >> ... > > Found the issue. > >

Re: Tomcat 9 and response.setTrailerFields

2020-06-24 Thread Julian Reschke
On 24.06.2020 17:35, Julian Reschke wrote: ... > So it does set "Trailer" (so the response was not committed yet), but it doesn't switch to chunked encoding. There must be something that I'm doing wrong... ... Found the issue. I was using a HttpServletResponse object that *delegates* to the r

Re: Tomcat 9 and response.setTrailerFields

2020-06-24 Thread Julian Reschke
On 24.06.2020 17:13, Mark Thomas wrote: On 24/06/2020 15:59, Julian Reschke wrote: Hi, I just tried to figure out whether Tomcat 9 will let be send trailer fields in a chunked HTTP/1.1 response, using https://tomcat.apache.org/tomcat-9.0-doc/servletapi/javax/servlet/http/HttpServletResponse.h

Re: Tomcat 9 and response.setTrailerFields

2020-06-24 Thread Mark Thomas
On 24/06/2020 15:59, Julian Reschke wrote: > > Hi, > > I just tried to figure out whether Tomcat 9 will let be send trailer > fields in a chunked HTTP/1.1 response, using > > https://tomcat.apache.org/tomcat-9.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html#setTrailerFields-java.uti

Tomcat 9 and response.setTrailerFields

2020-06-24 Thread Julian Reschke
Hi, I just tried to figure out whether Tomcat 9 will let be send trailer fields in a chunked HTTP/1.1 response, using https://tomcat.apache.org/tomcat-9.0-doc/servletapi/javax/servlet/http/HttpServletResponse.html#setTrailerFields-java.util.function.Supplier- I couldn't get it to work yet, so