formatting
This commit is contained in:
@@ -208,12 +208,10 @@ public class RetryGatewayFilterFactoryIntegrationTests extends BaseWebClientTest
|
||||
.uri(uri))
|
||||
|
||||
.route("retry_with_backoff", r -> r.host("**.retrywithbackoff.org")
|
||||
.filters(f -> f.prefixPath("/httpbin")
|
||||
.retry(config -> {
|
||||
config.setRetries(2).setBackoff(
|
||||
Duration.ofMillis(100), null, 2, true);
|
||||
}))
|
||||
.uri(uri))
|
||||
.filters(f -> f.prefixPath("/httpbin").retry(config -> {
|
||||
config.setRetries(2).setBackoff(Duration.ofMillis(100),
|
||||
null, 2, true);
|
||||
})).uri(uri))
|
||||
|
||||
.route("retry_with_loadbalancer",
|
||||
r -> r.host("**.retrywithloadbalancer.org")
|
||||
|
||||
@@ -59,8 +59,9 @@ public class HttpBinCompatibleController {
|
||||
return result;
|
||||
}
|
||||
|
||||
@RequestMapping(path = "/multivalueheaders", method = { RequestMethod.GET,
|
||||
RequestMethod.POST }, produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
@RequestMapping(path = "/multivalueheaders",
|
||||
method = { RequestMethod.GET, RequestMethod.POST },
|
||||
produces = MediaType.APPLICATION_JSON_VALUE)
|
||||
public Map<String, Object> multiValueHeaders(ServerWebExchange exchange) {
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result.put("headers", exchange.getRequest().getHeaders());
|
||||
|
||||
@@ -359,8 +359,7 @@ public class ProductionConfigurationTests {
|
||||
|
||||
@PostMapping("/proxy/no-body")
|
||||
public ResponseEntity<Foo> noBody(ProxyExchange<Foo> proxy) throws Exception {
|
||||
return proxy.uri(home.toString() + "/foos")
|
||||
.post();
|
||||
return proxy.uri(home.toString() + "/foos").post();
|
||||
}
|
||||
|
||||
@GetMapping("/forward/**")
|
||||
|
||||
Reference in New Issue
Block a user