Awesome, thanks! This works perfectly fine with me. Thanks a ton, @Joakim
Erdfelt
Best,
Aniruddha
ᐧ
On Tue, Jul 6, 2021 at 3:06 PM Joakim Erdfelt wrote:
> Ah, I missed that you were on Jetty 11.
>
> The request.getHttpFields() is an immutable object starting in Jetty
> 10.0.0.
>
> No
Ah, I missed that you were on Jetty 11.
The request.getHttpFields() is an immutable object starting in Jetty 10.0.0.
No worries, do this ...
HttpFields.Mutable replacement = HttpFields.build(request.getHttpFields())
.put("X-Request-ID", UUID.randomUUID().toString().toUpperCase());
request.se
Hi all,
I actually posted this question on stackoverflow earlier. I am using Jetty
11 and I am trying to add a custom header into httpServletRequest in my
handler class.
Thanks to @Joakim Erdfelt for introducing me to
HttpChannel.Listener. I followed his solution from stack-overflow comment
but