Support for per-route-timeouts in gateway-server-webmvc
Is your feature request related to a problem? Please describe.
We recently switched from spring-cloud-starter-gateway to spring-cloud-starter-gateway-server-webmvc for various reasons.
We were able to specify per route timeouts before via application.properties (spring.cloud.gateway.routes[x].metadata.response-timeout, as described in per-route-timeouts).
Now we can't use per-route-timeouts anymore, so instead we have to use the highest previously used response-timeout as a global configuration via spring.http.client.read-timeout.
Describe the solution you'd like A possibility to define per route timeouts via Java Routes API.
Describe alternatives you've considered
- Manipulating the request through HandlerFilterFunction
- Switching to Proxy Exchange Gateway
Additional context This is a feature request similar to the "bug" reported in #3378
Please help with adding support for route based read timeout configuration. Don't know why the previous thread was closed as this is a basic feature. Thanks in advance!