okhttp3.internal.http.RetryAndFollowUpInterceptor.class Maven / Gradle / Ivy
???? 4? 1okhttp3/internal/http/RetryAndFollowUpInterceptor java/lang/Object okhttp3/Interceptor intercept /(Lokhttp3/Interceptor$Chain;)Lokhttp3/Response; java/io/IOException #Lorg/jetbrains/annotations/NotNull; *okhttp3/internal/connection/RouteException chain kotlin/jvm/internal/Intrinsics checkNotNullParameter '(Ljava/lang/Object;Ljava/lang/String;)V
*okhttp3/internal/http/RealInterceptorChain getRequest$okhttp ()Lokhttp3/Request;
getCall$okhttp (()Lokhttp3/internal/connection/RealCall;
okhttp3/Response kotlin/collections/CollectionsKt " emptyList ()Ljava/util/List; $ %
# & $okhttp3/internal/connection/RealCall ( enterNetworkInterceptorExchange (Lokhttp3/Request;Z)V * +
) ,
isCanceled ()Z . /
) 0 Canceled 2 (Ljava/lang/String;)V 4 5
6 java/lang/Throwable 8 proceed %(Lokhttp3/Request;)Lokhttp3/Response; : ;
< getLastConnectException ()Ljava/io/IOException; > ?
@ recover P(Ljava/io/IOException;Lokhttp3/internal/connection/RealCall;Lokhttp3/Request;Z)Z B C
D getFirstConnectException F ?
G java/lang/Exception I okhttp3/internal/Util K withSuppressed <(Ljava/lang/Exception;Ljava/util/List;)Ljava/lang/Throwable; M N
L O java/util/Collection Q plus :(Ljava/util/Collection;Ljava/lang/Object;)Ljava/util/List; S T
# U %exitNetworkInterceptorExchange$okhttp (Z)V W X
) Y 2okhttp3/internal/http2/ConnectionShutdownException [
newBuilder ()Lokhttp3/Response$Builder; ] ^
! _ okhttp3/Response$Builder a body 2(Lokhttp3/ResponseBody;)Lokhttp3/Response$Builder; c d
b e build ()Lokhttp3/Response; g h
b i
priorResponse .(Lokhttp3/Response;)Lokhttp3/Response$Builder; k l
b m #getInterceptorScopedExchange$okhttp (()Lokhttp3/internal/connection/Exchange; o p
) q followUpRequest K(Lokhttp3/Response;Lokhttp3/internal/connection/Exchange;)Lokhttp3/Request; s t
u $okhttp3/internal/connection/Exchange w isDuplex$okhttp y /
x z timeoutEarlyExit ()V | }
) ~ okhttp3/Request ? ()Lokhttp3/RequestBody; c ?
? ? okhttp3/RequestBody ? isOneShot ? /
? ? ()Lokhttp3/ResponseBody; c ?
! ? java/io/Closeable ? closeQuietly (Ljava/io/Closeable;)V ? ?
L ? java/net/ProtocolException ? java/lang/StringBuilder ? 4 }
? ? Too many follow-up requests: ? append -(Ljava/lang/String;)Ljava/lang/StringBuilder; ? ?
? ? (I)Ljava/lang/StringBuilder; ? ?
? ? toString ()Ljava/lang/String; ? ?
? ?
? 6 e ,Lokhttp3/internal/connection/RouteException; Ljava/io/IOException; followUpBody Lokhttp3/RequestBody; followUp Lokhttp3/Request; exchange &Lokhttp3/internal/connection/Exchange; closeActiveExchange Z response Lokhttp3/Response; recoveredFailures Ljava/util/List; newExchangeFinder
followUpCount I call &Lokhttp3/internal/connection/RealCall; request realChain ,Lokhttp3/internal/http/RealInterceptorChain; this 3Lokhttp3/internal/http/RetryAndFollowUpInterceptor; Lokhttp3/Interceptor$Chain; okhttp3/Interceptor$Chain ? java/util/List ? okhttp3/ResponseBody ? client Lokhttp3/OkHttpClient; ? ? ? okhttp3/OkHttpClient ? retryOnConnectionFailure ? /
? ? requestIsOneShot )(Ljava/io/IOException;Lokhttp3/Request;)Z ? ?
?
isRecoverable (Ljava/io/IOException;Z)Z ? ?
? retryAfterFailure ? /
) ? userRequest requestSendStarted java/io/FileNotFoundException ? requestBody java/io/InterruptedIOException ? java/net/SocketTimeoutException ? #javax/net/ssl/SSLHandshakeException ? getCause ()Ljava/lang/Throwable; ? ?
? 'java/security/cert/CertificateException ? (javax/net/ssl/SSLPeerUnverifiedException ? getConnection$okhttp .()Lokhttp3/internal/connection/RealConnection; ? ?
x ? *okhttp3/internal/connection/RealConnection ? route ()Lokhttp3/Route; ? ?
? ? code ()I ? ?
! ? ?
! ? method ? ?
? ? checkNotNull (Ljava/lang/Object;)V
okhttp3/Route proxy ()Ljava/net/Proxy;
java/net/Proxy type ()Ljava/net/Proxy$Type;
java/net/Proxy$Type HTTP Ljava/net/Proxy$Type; 9Received HTTP_PROXY_AUTH (407) code while not using proxy proxyAuthenticator ()Lokhttp3/Authenticator;
? okhttp3/Authenticator authenticate 4(Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request; !
authenticator#
?$ buildRedirectRequest 7(Lokhttp3/Response;Ljava/lang/String;)Lokhttp3/Request;&'
( k h
!*
retryAfter (Lokhttp3/Response;I)I,-
.??? isCoalescedConnection$okhttp1 /
x2 noCoalescedConnections$okhttp4 }
?5
selectedProxy Ljava/net/Proxy; Ljava/lang/String; responseCode Lokhttp3/Route; userResponse java/lang/String= followRedirects? /
?@ LocationB header$default ](Lokhttp3/Response;Ljava/lang/String;Ljava/lang/String;ILjava/lang/Object;)Ljava/lang/String;DE
!F url ()Lokhttp3/HttpUrl;HI
?J okhttp3/HttpUrlL resolve %(Ljava/lang/String;)Lokhttp3/HttpUrl;NO
MP schemeR ?
MS areEqual '(Ljava/lang/Object;Ljava/lang/Object;)ZUV
W followSslRedirectsY /
?Z ()Lokhttp3/Request$Builder; ]\
?] okhttp3/internal/http/HttpMethod_ permitsRequestBody (Ljava/lang/String;)Zab
`c INSTANCE "Lokhttp3/internal/http/HttpMethod;ef `g redirectsWithBodyib
`j redirectsToGetlb
`m GETo okhttp3/Request$Builderq B(Ljava/lang/String;Lokhttp3/RequestBody;)Lokhttp3/Request$Builder; ?s
rt Transfer-Encodingv removeHeader -(Ljava/lang/String;)Lokhttp3/Request$Builder;xy
rz Content-Length| Content-Type~ canReuseConnectionFor %(Lokhttp3/HttpUrl;Lokhttp3/HttpUrl;)Z??
L?
Authorization? ,(Lokhttp3/HttpUrl;)Lokhttp3/Request$Builder;H?
r? g
r? maintainBody requestBuilder Lokhttp3/Request$Builder;
sameScheme Lokhttp3/HttpUrl; location Retry-After? java/lang/CharSequence? \d+? kotlin/text/Regex?
? 6 matches (Ljava/lang/CharSequence;)Z??
?? java/lang/Integer? valueOf '(Ljava/lang/String;)Ljava/lang/Integer;??
?? Integer.valueOf(header)? checkNotNullExpressionValue?
? intValue? ?
?? header defaultDelay (Lokhttp3/OkHttpClient;)V ?
? MAX_FOLLOW_UPS Companion =Lokhttp3/internal/http/RetryAndFollowUpInterceptor$Companion; Lkotlin/Metadata; mv bv k d1Q??R
??
??
??
??
??
?? 20:B
0¢J0202 0
HJ02020
HJ020HJ02020HJ(020202020HJ02020HJ02020HR0X¢
??¨ d2 Lokhttp3/Interceptor; okhttp ;okhttp3/internal/http/RetryAndFollowUpInterceptor$Companion? 1(Lkotlin/jvm/internal/DefaultConstructorMarker;)V 4?
???? ? RetryAndFollowUpInterceptor.kt
ConstantValue Code
StackMapTable LineNumberTable LocalVariableTable
Exceptions RuntimeInvisibleAnnotations $RuntimeInvisibleParameterAnnotations InnerClasses
SourceFile RuntimeVisibleAnnotations 1 ? ? ? ? ? ? ?? ? ?+? +? M+? ? N,? :6? !:66 ? ': -? -: 6
? 1? ?
Y3? 7? 9? ,-? =: 6? ~:*? A-? E? ? H? J? P?? R? H? V:6
? Z???:*-? \? ? ? E? ? J? P?? R? V:6
? Z??U? ? `? `? f? j? n? j: ? r:* ? v:? &? ? {? ? 6
:
? Z
?? ?:
?
? ?? 6
:
? Z? ? ?Y? ? ?? ?? W?? "? ?Y? ?Y? ??? ?? ?? ?? ?? 9?N :
? Z? :
? Z???} R ] `
R ] ?
<