I have created a custom filter in which I want to access size of response body. Is there anyway?
Either the content length header or read the whole response body into memory.
Actually I am new to spring framework and backend.
I tried the content length header. It worked. but sometime we didn't get this header from microservice.
Could you please share a small code for your second method (read the whole response body into memory)? like in term of ServerWebExchange or ServerHttpResponse.
same question here. any updates?