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.
Functional interface for scrubbing sensitive headers during redirects.
-
Method Summary
Modifier and TypeMethodDescriptionvoidscrubHeaders(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 modifyoriginalUrl- The original request URLproxyResolver- A function that returns the proxy for a given destination, or null if no proxy applies
-