You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-okhttp/api/http-client-engine-okhttp.api
+99Lines changed: 99 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,54 @@
1
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/HttpEngineEventListener : okhttp3/EventListener {
2
+
public fun <init> (Lokhttp3/ConnectionPool;Laws/smithy/kotlin/runtime/net/HostResolver;Lokhttp3/Dispatcher;Laws/smithy/kotlin/runtime/http/engine/internal/HttpClientMetrics;Lokhttp3/Call;)V
3
+
public fun cacheConditionalHit (Lokhttp3/Call;Lokhttp3/Response;)V
4
+
public fun cacheHit (Lokhttp3/Call;Lokhttp3/Response;)V
5
+
public fun cacheMiss (Lokhttp3/Call;)V
6
+
public fun callEnd (Lokhttp3/Call;)V
7
+
public fun callFailed (Lokhttp3/Call;Ljava/io/IOException;)V
8
+
public fun callStart (Lokhttp3/Call;)V
9
+
public fun canceled (Lokhttp3/Call;)V
10
+
public fun connectEnd (Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;)V
11
+
public fun connectFailed (Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;Lokhttp3/Protocol;Ljava/io/IOException;)V
12
+
public fun connectStart (Lokhttp3/Call;Ljava/net/InetSocketAddress;Ljava/net/Proxy;)V
13
+
public fun connectionAcquired (Lokhttp3/Call;Lokhttp3/Connection;)V
14
+
public fun connectionReleased (Lokhttp3/Call;Lokhttp3/Connection;)V
15
+
public fun dnsEnd (Lokhttp3/Call;Ljava/lang/String;Ljava/util/List;)V
16
+
public fun dnsStart (Lokhttp3/Call;Ljava/lang/String;)V
17
+
public fun proxySelectEnd (Lokhttp3/Call;Lokhttp3/HttpUrl;Ljava/util/List;)V
18
+
public fun proxySelectStart (Lokhttp3/Call;Lokhttp3/HttpUrl;)V
19
+
public fun requestBodyEnd (Lokhttp3/Call;J)V
20
+
public fun requestBodyStart (Lokhttp3/Call;)V
21
+
public fun requestFailed (Lokhttp3/Call;Ljava/io/IOException;)V
22
+
public fun requestHeadersEnd (Lokhttp3/Call;Lokhttp3/Request;)V
23
+
public fun requestHeadersStart (Lokhttp3/Call;)V
24
+
public fun responseBodyEnd (Lokhttp3/Call;J)V
25
+
public fun responseBodyStart (Lokhttp3/Call;)V
26
+
public fun responseFailed (Lokhttp3/Call;Ljava/io/IOException;)V
27
+
public fun responseHeadersEnd (Lokhttp3/Call;Lokhttp3/Response;)V
28
+
public fun responseHeadersStart (Lokhttp3/Call;)V
29
+
public fun satisfactionFailure (Lokhttp3/Call;Lokhttp3/Response;)V
30
+
public fun secureConnectEnd (Lokhttp3/Call;Lokhttp3/Handshake;)V
31
+
public fun secureConnectStart (Lokhttp3/Call;)V
32
+
}
33
+
34
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/MetricsInterceptor : okhttp3/Interceptor {
35
+
public static final field INSTANCE Laws/smithy/kotlin/runtime/http/engine/okhttp/MetricsInterceptor;
36
+
public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
37
+
}
38
+
39
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpCall : aws/smithy/kotlin/runtime/http/HttpCall {
40
+
public fun <init> (Laws/smithy/kotlin/runtime/http/request/HttpRequest;Laws/smithy/kotlin/runtime/http/response/HttpResponse;Laws/smithy/kotlin/runtime/time/Instant;Laws/smithy/kotlin/runtime/time/Instant;Lkotlin/coroutines/CoroutineContext;Lokhttp3/Call;)V
41
+
public synthetic fun <init> (Laws/smithy/kotlin/runtime/http/request/HttpRequest;Laws/smithy/kotlin/runtime/http/response/HttpResponse;Laws/smithy/kotlin/runtime/time/Instant;Laws/smithy/kotlin/runtime/time/Instant;Lkotlin/coroutines/CoroutineContext;Lokhttp3/Call;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
42
+
public fun cancelInFlight ()V
43
+
public fun copy (Laws/smithy/kotlin/runtime/http/request/HttpRequest;Laws/smithy/kotlin/runtime/http/response/HttpResponse;)Laws/smithy/kotlin/runtime/http/HttpCall;
44
+
public final fun getCall ()Lokhttp3/Call;
45
+
}
46
+
47
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpDns : okhttp3/Dns {
48
+
public fun <init> (Laws/smithy/kotlin/runtime/net/HostResolver;)V
49
+
public fun lookup (Ljava/lang/String;)Ljava/util/List;
50
+
}
51
+
1
52
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngine : aws/smithy/kotlin/runtime/http/engine/HttpClientEngineBase {
2
53
public static final field Companion Laws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngine$Companion;
3
54
public fun <init> ()V
@@ -32,3 +83,51 @@ public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngineConf
32
83
public final fun invoke (Lkotlin/jvm/functions/Function1;)Laws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngineConfig;
33
84
}
34
85
86
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngineKt {
87
+
public static final fun buildClient (Laws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngineConfig;Laws/smithy/kotlin/runtime/http/engine/internal/HttpClientMetrics;)Lokhttp3/OkHttpClient;
88
+
}
89
+
90
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpHeadersAdapter : aws/smithy/kotlin/runtime/http/Headers {
91
+
public fun <init> (Lokhttp3/Headers;)V
92
+
public fun contains (Ljava/lang/String;)Z
93
+
public synthetic fun contains (Ljava/lang/String;Ljava/lang/Object;)Z
94
+
public fun contains (Ljava/lang/String;Ljava/lang/String;)Z
95
+
public fun entries ()Ljava/util/Set;
96
+
public fun forEach (Lkotlin/jvm/functions/Function2;)V
97
+
public synthetic fun get (Ljava/lang/String;)Ljava/lang/Object;
98
+
public fun get (Ljava/lang/String;)Ljava/lang/String;
99
+
public fun getAll (Ljava/lang/String;)Ljava/util/List;
100
+
public fun getCaseInsensitiveName ()Z
101
+
public fun isEmpty ()Z
102
+
public fun names ()Ljava/util/Set;
103
+
}
104
+
105
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpProxyAuthenticator : okhttp3/Authenticator {
106
+
public fun <init> (Laws/smithy/kotlin/runtime/http/engine/ProxySelector;)V
107
+
public fun authenticate (Lokhttp3/Route;Lokhttp3/Response;)Lokhttp3/Request;
108
+
}
109
+
110
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpProxySelector : java/net/ProxySelector {
111
+
public fun <init> (Laws/smithy/kotlin/runtime/http/engine/ProxySelector;)V
112
+
public fun connectFailed (Ljava/net/URI;Ljava/net/SocketAddress;Ljava/io/IOException;)V
113
+
public fun select (Ljava/net/URI;)Ljava/util/List;
114
+
}
115
+
116
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpUtilsKt {
117
+
public static final fun errCode (Ljava/lang/Exception;)Laws/smithy/kotlin/runtime/http/HttpErrorCode;
118
+
public static final fun mapOkHttpExceptions (Lkotlin/jvm/functions/Function0;)Ljava/lang/Object;
119
+
public static final fun toOkHttpHeaders (Laws/smithy/kotlin/runtime/http/Headers;)Lokhttp3/Headers;
120
+
public static final fun toOkHttpRequest (Laws/smithy/kotlin/runtime/http/request/HttpRequest;Laws/smithy/kotlin/runtime/operation/ExecutionContext;Lkotlin/coroutines/CoroutineContext;Laws/smithy/kotlin/runtime/http/engine/internal/HttpClientMetrics;)Lokhttp3/Request;
121
+
public static final fun toSdkResponse (Lokhttp3/Response;)Laws/smithy/kotlin/runtime/http/response/HttpResponse;
122
+
public static final fun toUrl (Ljava/net/URI;)Laws/smithy/kotlin/runtime/net/url/Url;
123
+
}
124
+
125
+
public final class aws/smithy/kotlin/runtime/http/engine/okhttp/StreamingRequestBody : okhttp3/RequestBody {
126
+
public fun <init> (Laws/smithy/kotlin/runtime/http/HttpBody;Lkotlin/coroutines/CoroutineContext;)V
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp/HttpEngineEventListener.kt
// callStart() is invoked immediately when enqueued, next success phase is either dnsStart() or connectionAcquired()
49
51
// see https://github.com/square/okhttp/blob/7c92ed0879477eddb2fce6b4066d151525d5687f/okhttp/src/jvmMain/kotlin/okhttp3/internal/connection/RealCall.kt#L167-L175
@@ -84,22 +86,22 @@ internal class HttpEngineEventListener(
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp/MetricsInterceptor.kt
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpEngine.kt
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-okhttp/jvm/src/aws/smithy/kotlin/runtime/http/engine/okhttp/OkHttpHeadersAdapter.kt
0 commit comments