Class MalformedURLRedirectInterceptor
-
- All Implemented Interfaces:
-
okhttp3.Interceptor
public final class MalformedURLRedirectInterceptor implements InterceptorInterceptor to handle redirects in OkHttp requests. It checks the "Location" header of redirect responses and validates the URL. If the URL is malformed, it cancels the request and throws a MalformedURLException.
-
-
Constructor Summary
Constructors Constructor Description MalformedURLRedirectInterceptor()
-