Package org.tailormap.api.util
Class HttpProxyUtil
java.lang.Object
org.tailormap.api.util.HttpProxyUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addForwardedForRequestHeaders
(HttpRequest.Builder requestBuilder, jakarta.servlet.http.HttpServletRequest request) static void
passthroughRequestHeaders
(HttpRequest.Builder requestBuilder, jakarta.servlet.http.HttpServletRequest request, Set<String> headers) static org.springframework.http.HttpHeaders
passthroughResponseHeaders
(HttpHeaders upstreamHeaders, Set<String> allowedResponseHeaders) static void
setHttpBasicAuthenticationHeader
(HttpRequest.Builder requestBuilder, String username, String password)
-
Constructor Details
-
HttpProxyUtil
public HttpProxyUtil()
-
-
Method Details
-
addForwardedForRequestHeaders
public static void addForwardedForRequestHeaders(HttpRequest.Builder requestBuilder, jakarta.servlet.http.HttpServletRequest request) -
passthroughRequestHeaders
public static void passthroughRequestHeaders(HttpRequest.Builder requestBuilder, jakarta.servlet.http.HttpServletRequest request, Set<String> headers) -
passthroughResponseHeaders
public static org.springframework.http.HttpHeaders passthroughResponseHeaders(HttpHeaders upstreamHeaders, Set<String> allowedResponseHeaders) -
setHttpBasicAuthenticationHeader
public static void setHttpBasicAuthenticationHeader(HttpRequest.Builder requestBuilder, String username, String password)
-