Class HttpProxyUtil

java.lang.Object
org.tailormap.api.util.HttpProxyUtil

public class HttpProxyUtil extends Object
  • 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)