* In case the failureType coming from Hystrix is SHOSRTCIRCUIT, then
ServiceUnavailableException will be thrown. That exception provides HTTP
503 to the original service consumer.
Moreover, HystrixGatewayFilterFactoryTests have been enriched so that
the aforementioned case is tested and verified.
* The hystrixFilterServiceUnavailable test of
HystrixGatewayFilterFactoryTests no longer force-closes the circuit in
order not to impact any subsequent tests (see also the comment:
https://github.com/spring-cloud/spring-cloud-gateway/pull/1230#pullrequestreview-272440126)
This is done by adding a global cors config to simlple URL Handler mapping. Spring webflux adds a static resource handler, WebFluxAutoConfiguration.WebFluxConfig. This adds a SimpleURLHandler which will be the handler that ends returning http 404 for requets that match any spring cloud gateway predicates.
fixes gh-840
Currently only SetPath can use the uri variables from the path and host
predicates. Now, other filters can use them thru the
ServerWebExchangeUtils.expand() method.
fixes gh-704
This allows for easier debugging and visibility into configuration.
Predicates needed custom implementations of and() or() and not() so
that toString() could function.
Actuator endpoint was updated to use the new toString(). To enable
set `spring.cloud.gateway.actuator.verbose.enabled=true`.
fixes gh-784
Adapts the methods from AlwaysRetainBodyGlobalFilter to a generic
way to cache the request body. That filter was removed and
AdaptCachedBodyGlobalFilter and ReadBodyPredicateFactory were updated
to use the new methods.
fixes gh-946
Creates new Cache filter that is activated with retry filter is used.
Other filters can opt into caching if needed.
Uses netty factory and retainedSlice() for retry.
Only cache if retry filter is enabled
Fixes gh-982
Fixes gh-1064