Class MalformedURLRedirectInterceptor

  • All Implemented Interfaces:
    okhttp3.Interceptor

    
    public final class MalformedURLRedirectInterceptor
     implements Interceptor
                        

    Interceptor 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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Response intercept(Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MalformedURLRedirectInterceptor

        MalformedURLRedirectInterceptor()
    • Method Detail

      • intercept

         Response intercept(Interceptor.Chain chain)