formatting

This commit is contained in:
Spencer Gibb
2019-07-25 13:27:24 -04:00
parent 25954c8952
commit 6f70f9ed5c
3 changed files with 8 additions and 10 deletions

View File

@@ -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")

View File

@@ -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());

View File

@@ -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/**")