/**
	 * Partition the limit by the full path. Percentages of the limit are partitioned to
	 * named groups. Group membership is derived from the provided mapping function.
	 * @param pathToGroup Mapping function from full path to a named group.
	 * @return Chainable builder
	 */
public ServerWebExchangeLimiterBuilder partitionByPathInfo(
			Function<String, String> pathToGroup) {
		return partitionResolver(exchange -> {
			// TODO: pathWithinApplication?
			String path = exchange.getRequest().getPath().contextPath().value();
			return Optional.ofNullable(path).map(pathToGroup).orElse(null);
		});
	}
public ServerWebExchangeLimiterBuilder partitionByPathInfo(
Function<String, String> pathToGroup) {
return partitionResolver(exchange -> {
// TODO: pathWithinApplication?
String path = exchange.getRequest().getPath().contextPath().value();
return Optional.ofNullable(path).map(pathToGroup).orElse(null);
});
}
public ServerWebExchangeLimiterBuilder partitionByPathInfo(
Function<String, String> pathToGroup) {
return partitionResolver(exchange -> {
// TODO: pathWithinApplication?
String path = exchange.getRequest().getPath().contextPath().value();
return Optional.ofNullable(path).map(pathToGroup).orElse(null);
});
}
public ServerWebExchangeLimiterBuilder partitionByPathInfo(
Function<String, String> pathToGroup) {
return partitionResolver(exchange -> {
// TODO: pathWithinApplication?
String path = exchange.getRequest().getPath().contextPath().value();
return Optional.ofNullable(path).map(pathToGroup).orElse(null);
});
}