spring-cloud-gateway
spring-cloud-gateway copied to clipboard
Request size predicate
I want to route request regarding its size. I tried to use HeaderRoutePredicateFactory and Content-length header with a regex : this works but when I look at the requests I get : the header is not always present.
I don't want to cache request body and recalculate the request size, because i can have large payload.
Is there any better way to achieve what I am trying to do ?