We are trying to return content-length on a server running JAX-RS on every endpoint.
There are already some solutions based on adding the information on each endpoint, like here. However, this implementation is not very convenient as it requires editing each and every endpoint.
Is there a more straightforward way to make Jersey return content-length on every endpoint?
We also found this potential solution, but we are not sure how to generate a ServletResponseWrapper
Thank you!