
com.github.mkopylec.charon.forwarding.Utils Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of charon-spring-webmvc Show documentation
Show all versions of charon-spring-webmvc Show documentation
Reverse proxy implementation in form of Spring Boot starter
The newest version!
package com.github.mkopylec.charon.forwarding;
import org.springframework.http.HttpHeaders;
import java.time.Duration;
import static java.lang.String.join;
public class Utils {
public static int toMillis(Duration duration) {
return (int) duration.toMillis();
}
public static String metricName(String... parts) {
return "charon." + join(".", parts);
}
public static HttpHeaders copyHeaders(HttpHeaders headers) {
HttpHeaders copy = new HttpHeaders();
copy.putAll(headers);
return copy;
}
private Utils() {
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy