-
Notifications
You must be signed in to change notification settings - Fork 9.2k
/
Copy pathmockwebserver3.api
257 lines (228 loc) · 12.7 KB
/
mockwebserver3.api
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
public abstract class mockwebserver3/Dispatcher {
public fun <init> ()V
public abstract fun dispatch (Lmockwebserver3/RecordedRequest;)Lmockwebserver3/MockResponse;
public fun peek ()Lmockwebserver3/MockResponse;
public fun shutdown ()V
}
public final class mockwebserver3/MockResponse {
public static final field Companion Lmockwebserver3/MockResponse$Companion;
public fun <init> ()V
public fun <init> (I)V
public fun <init> (ILokhttp3/Headers;)V
public fun <init> (ILokhttp3/Headers;Ljava/lang/String;)V
public fun <init> (ILokhttp3/Headers;Ljava/lang/String;Z)V
public fun <init> (ILokhttp3/Headers;Ljava/lang/String;ZLmockwebserver3/SocketPolicy;)V
public synthetic fun <init> (ILokhttp3/Headers;Ljava/lang/String;ZLmockwebserver3/SocketPolicy;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public synthetic fun <init> (Lmockwebserver3/MockResponse$Builder;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getBody ()Lmockwebserver3/MockResponseBody;
public final fun getBodyDelayNanos ()J
public final fun getCode ()I
public final fun getHeaders ()Lokhttp3/Headers;
public final fun getHeadersDelayNanos ()J
public final fun getInTunnel ()Z
public final fun getInformationalResponses ()Ljava/util/List;
public final fun getMessage ()Ljava/lang/String;
public final fun getPushPromises ()Ljava/util/List;
public final fun getSettings ()Lokhttp3/internal/http2/Settings;
public final fun getSocketPolicy ()Lmockwebserver3/SocketPolicy;
public final fun getStatus ()Ljava/lang/String;
public final fun getStreamHandler ()Lmockwebserver3/StreamHandler;
public final fun getThrottleBytesPerPeriod ()J
public final fun getThrottlePeriodNanos ()J
public final fun getTrailers ()Lokhttp3/Headers;
public final fun getWebSocketListener ()Lokhttp3/WebSocketListener;
public final fun newBuilder ()Lmockwebserver3/MockResponse$Builder;
public fun toString ()Ljava/lang/String;
}
public final class mockwebserver3/MockResponse$Builder : java/lang/Cloneable {
public fun <init> ()V
public final fun add100Continue ()Lmockwebserver3/MockResponse$Builder;
public final fun addHeader (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder;
public final fun addHeader (Ljava/lang/String;Ljava/lang/Object;)Lmockwebserver3/MockResponse$Builder;
public final fun addHeaderLenient (Ljava/lang/String;Ljava/lang/Object;)Lmockwebserver3/MockResponse$Builder;
public final fun addInformationalResponse (Lmockwebserver3/MockResponse;)Lmockwebserver3/MockResponse$Builder;
public final fun addPush (Lmockwebserver3/PushPromise;)Lmockwebserver3/MockResponse$Builder;
public final fun body (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder;
public final fun body (Lmockwebserver3/MockResponseBody;)Lmockwebserver3/MockResponse$Builder;
public final fun body (Lokio/Buffer;)Lmockwebserver3/MockResponse$Builder;
public final fun bodyDelay (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/MockResponse$Builder;
public final fun build ()Lmockwebserver3/MockResponse;
public final fun chunkedBody (Ljava/lang/String;I)Lmockwebserver3/MockResponse$Builder;
public final fun chunkedBody (Lokio/Buffer;I)Lmockwebserver3/MockResponse$Builder;
public final fun clearHeaders ()Lmockwebserver3/MockResponse$Builder;
public synthetic fun clone ()Ljava/lang/Object;
public fun clone ()Lmockwebserver3/MockResponse$Builder;
public final fun code (I)Lmockwebserver3/MockResponse$Builder;
public final fun getBody ()Lmockwebserver3/MockResponseBody;
public final fun getCode ()I
public final fun getInTunnel ()Z
public final fun getInformationalResponses ()Ljava/util/List;
public final fun getPushPromises ()Ljava/util/List;
public final fun getSettings ()Lokhttp3/internal/http2/Settings;
public final fun getSocketPolicy ()Lmockwebserver3/SocketPolicy;
public final fun getStatus ()Ljava/lang/String;
public final fun getStreamHandler ()Lmockwebserver3/StreamHandler;
public final fun getThrottleBytesPerPeriod ()J
public final fun getWebSocketListener ()Lokhttp3/WebSocketListener;
public final fun headers (Lokhttp3/Headers;)Lmockwebserver3/MockResponse$Builder;
public final fun headersDelay (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/MockResponse$Builder;
public final fun inTunnel ()Lmockwebserver3/MockResponse$Builder;
public final fun removeHeader (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder;
public final fun setBody (Lmockwebserver3/MockResponseBody;)V
public final fun setCode (I)V
public final fun setHeader (Ljava/lang/String;Ljava/lang/Object;)Lmockwebserver3/MockResponse$Builder;
public final fun setSocketPolicy (Lmockwebserver3/SocketPolicy;)V
public final fun setStatus (Ljava/lang/String;)V
public final fun setStreamHandler (Lmockwebserver3/StreamHandler;)V
public final fun setWebSocketListener (Lokhttp3/WebSocketListener;)V
public final fun settings (Lokhttp3/internal/http2/Settings;)Lmockwebserver3/MockResponse$Builder;
public final fun socketPolicy (Lmockwebserver3/SocketPolicy;)Lmockwebserver3/MockResponse$Builder;
public final fun status (Ljava/lang/String;)Lmockwebserver3/MockResponse$Builder;
public final fun streamHandler (Lmockwebserver3/StreamHandler;)Lmockwebserver3/MockResponse$Builder;
public final fun throttleBody (JJLjava/util/concurrent/TimeUnit;)Lmockwebserver3/MockResponse$Builder;
public final fun trailers (Lokhttp3/Headers;)Lmockwebserver3/MockResponse$Builder;
public final fun webSocketUpgrade (Lokhttp3/WebSocketListener;)Lmockwebserver3/MockResponse$Builder;
}
public final class mockwebserver3/MockResponse$Companion {
}
public abstract interface class mockwebserver3/MockResponseBody {
public abstract fun getContentLength ()J
public abstract fun writeTo (Lokio/BufferedSink;)V
}
public final class mockwebserver3/MockWebServer : java/io/Closeable {
public static final field Companion Lmockwebserver3/MockWebServer$Companion;
public fun <init> ()V
public fun close ()V
public final fun enqueue (Lmockwebserver3/MockResponse;)V
public final fun getBodyLimit ()J
public final fun getDispatcher ()Lmockwebserver3/Dispatcher;
public final fun getHostName ()Ljava/lang/String;
public final fun getInetSocketAddress ()Ljava/net/InetSocketAddress;
public final fun getPort ()I
public final fun getProtocolNegotiationEnabled ()Z
public final fun getProtocols ()Ljava/util/List;
public final fun getRequestCount ()I
public final fun getServerSocketFactory ()Lokhttp3/internal/socket/OkioServerSocketFactory;
public final fun getStarted ()Z
public final fun noClientAuth ()V
public final fun requestClientAuth ()V
public final fun requireClientAuth ()V
public final fun setBodyLimit (J)V
public final fun setDispatcher (Lmockwebserver3/Dispatcher;)V
public final fun setProtocolNegotiationEnabled (Z)V
public final fun setProtocols (Ljava/util/List;)V
public final fun setServerSocketFactory (Lokhttp3/internal/socket/OkioServerSocketFactory;)V
public final fun setStarted (Z)V
public final fun shutdown ()V
public final fun start ()V
public final fun start (I)V
public final fun start (Ljava/net/InetAddress;I)V
public static synthetic fun start$default (Lmockwebserver3/MockWebServer;IILjava/lang/Object;)V
public final fun takeRequest ()Lmockwebserver3/RecordedRequest;
public final fun takeRequest (JLjava/util/concurrent/TimeUnit;)Lmockwebserver3/RecordedRequest;
public final fun toProxyAddress ()Ljava/net/Proxy;
public fun toString ()Ljava/lang/String;
public final fun url (Ljava/lang/String;)Lokhttp3/HttpUrl;
public final fun useHttps (Ljavax/net/ssl/SSLSocketFactory;)V
}
public final class mockwebserver3/MockWebServer$Companion {
}
public final class mockwebserver3/PushPromise {
public fun <init> (Ljava/lang/String;Ljava/lang/String;Lokhttp3/Headers;Lmockwebserver3/MockResponse;)V
public final fun getHeaders ()Lokhttp3/Headers;
public final fun getMethod ()Ljava/lang/String;
public final fun getPath ()Ljava/lang/String;
public final fun getResponse ()Lmockwebserver3/MockResponse;
}
public class mockwebserver3/QueueDispatcher : mockwebserver3/Dispatcher {
public static final field Companion Lmockwebserver3/QueueDispatcher$Companion;
public fun <init> ()V
public fun clear ()V
public fun dispatch (Lmockwebserver3/RecordedRequest;)Lmockwebserver3/MockResponse;
public fun enqueueResponse (Lmockwebserver3/MockResponse;)V
protected final fun getResponseQueue ()Ljava/util/concurrent/BlockingQueue;
public fun peek ()Lmockwebserver3/MockResponse;
public fun setFailFast (Lmockwebserver3/MockResponse;)V
public fun setFailFast (Z)V
public fun shutdown ()V
}
public final class mockwebserver3/QueueDispatcher$Companion {
}
public final class mockwebserver3/RecordedRequest {
public fun <init> (Ljava/lang/String;Lokhttp3/Headers;Ljava/util/List;JLokio/Buffer;ILokhttp3/internal/socket/OkioSocket;Ljava/io/IOException;)V
public synthetic fun <init> (Ljava/lang/String;Lokhttp3/Headers;Ljava/util/List;JLokio/Buffer;ILokhttp3/internal/socket/OkioSocket;Ljava/io/IOException;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getBody ()Lokio/Buffer;
public final fun getBodySize ()J
public final fun getChunkSizes ()Ljava/util/List;
public final fun getFailure ()Ljava/io/IOException;
public final fun getHandshake ()Lokhttp3/Handshake;
public final fun getHandshakeServerNames ()Ljava/util/List;
public final fun getHeaders ()Lokhttp3/Headers;
public final fun getMethod ()Ljava/lang/String;
public final fun getPath ()Ljava/lang/String;
public final fun getRequestLine ()Ljava/lang/String;
public final fun getRequestUrl ()Lokhttp3/HttpUrl;
public final fun getSequenceNumber ()I
public fun toString ()Ljava/lang/String;
}
public abstract interface class mockwebserver3/SocketPolicy {
}
public final class mockwebserver3/SocketPolicy$DisconnectAfterRequest : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectAfterRequest;
}
public final class mockwebserver3/SocketPolicy$DisconnectAtEnd : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectAtEnd;
}
public final class mockwebserver3/SocketPolicy$DisconnectAtStart : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectAtStart;
}
public final class mockwebserver3/SocketPolicy$DisconnectDuringRequestBody : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectDuringRequestBody;
}
public final class mockwebserver3/SocketPolicy$DisconnectDuringResponseBody : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$DisconnectDuringResponseBody;
}
public final class mockwebserver3/SocketPolicy$DoNotReadRequestBody : mockwebserver3/SocketPolicy {
public fun <init> ()V
public fun <init> (I)V
public synthetic fun <init> (IILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getHttp2ErrorCode ()I
}
public final class mockwebserver3/SocketPolicy$FailHandshake : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$FailHandshake;
}
public final class mockwebserver3/SocketPolicy$HalfCloseAfterRequest : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$HalfCloseAfterRequest;
}
public final class mockwebserver3/SocketPolicy$KeepOpen : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$KeepOpen;
}
public final class mockwebserver3/SocketPolicy$NoResponse : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$NoResponse;
}
public final class mockwebserver3/SocketPolicy$ResetStreamAtStart : mockwebserver3/SocketPolicy {
public fun <init> ()V
public fun <init> (I)V
public synthetic fun <init> (IILkotlin/jvm/internal/DefaultConstructorMarker;)V
public final fun getHttp2ErrorCode ()I
}
public final class mockwebserver3/SocketPolicy$ShutdownInputAtEnd : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$ShutdownInputAtEnd;
}
public final class mockwebserver3/SocketPolicy$ShutdownOutputAtEnd : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$ShutdownOutputAtEnd;
}
public final class mockwebserver3/SocketPolicy$ShutdownServerAfterResponse : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$ShutdownServerAfterResponse;
}
public final class mockwebserver3/SocketPolicy$StallSocketAtStart : mockwebserver3/SocketPolicy {
public static final field INSTANCE Lmockwebserver3/SocketPolicy$StallSocketAtStart;
}
public abstract interface class mockwebserver3/Stream {
public abstract fun cancel ()V
public abstract fun getRequestBody ()Lokio/BufferedSource;
public abstract fun getResponseBody ()Lokio/BufferedSink;
}
public abstract interface class mockwebserver3/StreamHandler {
public abstract fun handle (Lmockwebserver3/Stream;)V
}