Interface RedirectHandlerOption.IScrubSensitiveHeaders

Enclosing class:
RedirectHandlerOption
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface RedirectHandlerOption.IScrubSensitiveHeaders
Functional interface for scrubbing sensitive headers during redirects.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    scrubHeaders(okhttp3.Request.Builder requestBuilder, okhttp3.HttpUrl originalUrl, Function<okhttp3.HttpUrl,Proxy> proxyResolver)
    Scrubs sensitive headers from the request before following a redirect.
  • Method Details

    • scrubHeaders

      void scrubHeaders(@Nonnull okhttp3.Request.Builder requestBuilder, @Nonnull okhttp3.HttpUrl originalUrl, @Nullable Function<okhttp3.HttpUrl,Proxy> proxyResolver)
      Scrubs sensitive headers from the request before following a redirect.
      Parameters:
      requestBuilder - The request builder to modify
      originalUrl - The original request URL
      proxyResolver - A function that returns the proxy for a given destination, or null if no proxy applies