-
Couldn't load subscription status.
- Fork 38.8k
Closed as not planned
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another
Description
It would be nice that defaultUriVariables() could accept Supplier/Function as value of Map.
MDC.put("partition", "p0"); // value is variable per request
Map<String, ?> defaultUriVariables = Map.of(
// "partition", (Supplier<String>) () -> MDC.get("partition"),
"partition", (Function<String, String>) MDC::get
);
RestClient restClient = RestClient.builder().baseUrl("http://{partition}.example.com").defaultUriVariables(defaultUriVariables).build();Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: supersededAn issue that has been superseded by anotherAn issue that has been superseded by another