By setting them early, it doesn't overwrite the Transfer-Encoding:chunked header automatically set by the Reactor Netty HttpClient.
This caused bad requests to be sent downstream.
fixes gh-1181
* relates to gh-600 Add Predicate and Filter validation to Route Creation Actuator Endpoint
* renamed a variable in validateRouteDefinition(RouteDefinition) to better fit the injected parameter
* Fixes cache is cleared on refresh but not actually refreshed. Fixes gh-1168
* Made DiscoveryClientRouteDefinitionLocator non blocking, removed scheduler from CachingRouteDefinitionLocator.
* Changed how the blocking code is migrated to the non blocking world in DiscoveryClientRouteDefinitionLocator.
Fixes gh-1168
* Initial ReactiveLoadBalancer support
# Conflicts:
# spring-cloud-gateway-core/src/main/java/org/springframework/cloud/gateway/filter/LoadBalancerClientFilter.java
* Optimise imports. Minor refactoring.
* Use `LoadBalancerUriTools` for reconstructing uris.
Handle 404 exceptions. Add more tests and javadocs.
* Finish autoConfiguration and dependencies setup.
* Rename to `ReactorLoadBalancerClientFilter`. Fix test. Add docs.
* Fix after review.
* 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)
Adds ConversionService and deprecates ConfigurationUtils.
ConversionService uses Validation bind handler to handle validation rather than running validation logic by hand.