forked from nativescript-community/https
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathokhttp3.d.ts
More file actions
4439 lines (4316 loc) · 208 KB
/
okhttp3.d.ts
File metadata and controls
4439 lines (4316 loc) · 208 KB
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
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/// <reference path="android-declarations.d.ts"/>
declare module okhttp3 {
export class Address extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Address>;
/** @deprecated */
public proxyAuthenticator(): okhttp3.Authenticator;
/** @deprecated */
public proxy(): java.net.Proxy;
public proxy(): java.net.Proxy;
public equals(param0: any): boolean;
public sslSocketFactory(): javax.net.ssl.SSLSocketFactory;
public equalsNonHost$okhttp(param0: okhttp3.Address): boolean;
public certificatePinner(): okhttp3.CertificatePinner;
/** @deprecated */
public proxySelector(): java.net.ProxySelector;
/** @deprecated */
public protocols(): java.util.List<okhttp3.Protocol>;
public protocols(): java.util.List<okhttp3.Protocol>;
public dns(): okhttp3.Dns;
public proxyAuthenticator(): okhttp3.Authenticator;
public hostnameVerifier(): javax.net.ssl.HostnameVerifier;
public constructor(param0: string, param1: number, param2: okhttp3.Dns, param3: javax.net.SocketFactory, param4: javax.net.ssl.SSLSocketFactory, param5: javax.net.ssl.HostnameVerifier, param6: okhttp3.CertificatePinner, param7: okhttp3.Authenticator, param8: java.net.Proxy, param9: java.util.List<any>, param10: java.util.List<okhttp3.ConnectionSpec>, param11: java.net.ProxySelector);
public hashCode(): number;
public connectionSpecs(): java.util.List<okhttp3.ConnectionSpec>;
/** @deprecated */
public sslSocketFactory(): javax.net.ssl.SSLSocketFactory;
/** @deprecated */
public certificatePinner(): okhttp3.CertificatePinner;
/** @deprecated */
public url(): okhttp3.HttpUrl;
public proxySelector(): java.net.ProxySelector;
public url(): okhttp3.HttpUrl;
public toString(): string;
/** @deprecated */
public connectionSpecs(): java.util.List<okhttp3.ConnectionSpec>;
/** @deprecated */
public dns(): okhttp3.Dns;
public socketFactory(): javax.net.SocketFactory;
/** @deprecated */
public hostnameVerifier(): javax.net.ssl.HostnameVerifier;
/** @deprecated */
public socketFactory(): javax.net.SocketFactory;
}
}
declare module okhttp3 {
export class Authenticator extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Authenticator>;
/**
* Constructs a new instance of the okhttp3.Authenticator interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
authenticate(param0: okhttp3.Route, param1: okhttp3.Response): okhttp3.Request;
<clinit>(): void;
});
public constructor();
public static NONE: okhttp3.Authenticator;
public static JAVA_NET_AUTHENTICATOR: okhttp3.Authenticator;
public authenticate(param0: okhttp3.Route, param1: okhttp3.Response): okhttp3.Request;
}
export module Authenticator {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Authenticator.Companion>;
}
export module Companion {
export class AuthenticatorNone extends java.lang.Object implements okhttp3.Authenticator {
public static class: java.lang.Class<okhttp3.Authenticator.Companion.AuthenticatorNone>;
public authenticate(param0: okhttp3.Route, param1: okhttp3.Response): okhttp3.Request;
public constructor();
}
}
}
}
declare module okhttp3 {
export class Cache extends java.lang.Object implements java.io.Closeable, java.io.Flushable {
public static class: java.lang.Class<okhttp3.Cache>;
public trackConditionalCacheHit$okhttp(): void;
public close(): void;
public directory(): java.io.File;
public constructor(param0: java.io.File, param1: number);
public writeAbortCount(): number;
public constructor(param0: java.io.File, param1: number, param2: okhttp3.internal.io.FileSystem);
/** @deprecated */
public directory(): java.io.File;
public isClosed(): boolean;
public delete(): void;
public put$okhttp(param0: okhttp3.Response): okhttp3.internal.cache.CacheRequest;
public size(): number;
public update$okhttp(param0: okhttp3.Response, param1: okhttp3.Response): void;
public trackResponse$okhttp(param0: okhttp3.internal.cache.CacheStrategy): void;
public urls(): java.util.Iterator<string>;
public maxSize(): number;
public getWriteSuccessCount$okhttp(): number;
public getCache$okhttp(): okhttp3.internal.cache.DiskLruCache;
public get$okhttp(param0: okhttp3.Request): okhttp3.Response;
public static key(param0: okhttp3.HttpUrl): string;
public setWriteAbortCount$okhttp(param0: number): void;
public setWriteSuccessCount$okhttp(param0: number): void;
public evictAll(): void;
public networkCount(): number;
public getWriteAbortCount$okhttp(): number;
public requestCount(): number;
public flush(): void;
public remove$okhttp(param0: okhttp3.Request): void;
public initialize(): void;
public writeSuccessCount(): number;
public hitCount(): number;
}
export module Cache {
export class CacheResponseBody extends okhttp3.ResponseBody {
public static class: java.lang.Class<okhttp3.Cache.CacheResponseBody>;
public getSnapshot(): okhttp3.internal.cache.DiskLruCache.Snapshot;
public contentLength(): number;
public source(): okio.BufferedSource;
public contentType(): okhttp3.MediaType;
public constructor();
public close(): void;
public constructor(param0: okhttp3.internal.cache.DiskLruCache.Snapshot, param1: string, param2: string);
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cache.Companion>;
public varyMatches(param0: okhttp3.Response, param1: okhttp3.Headers, param2: okhttp3.Request): boolean;
public readInt$okhttp(param0: okio.BufferedSource): number;
public varyHeaders(param0: okhttp3.Response): okhttp3.Headers;
public key(param0: okhttp3.HttpUrl): string;
public hasVaryAll(param0: okhttp3.Response): boolean;
}
export class Entry extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cache.Entry>;
public matches(param0: okhttp3.Request, param1: okhttp3.Response): boolean;
public constructor(param0: okhttp3.Response);
public constructor(param0: okio.Source);
public response(param0: okhttp3.internal.cache.DiskLruCache.Snapshot): okhttp3.Response;
public writeTo(param0: okhttp3.internal.cache.DiskLruCache.Editor): void;
}
export module Entry {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cache.Entry.Companion>;
}
}
export class RealCacheRequest extends java.lang.Object implements okhttp3.internal.cache.CacheRequest {
public static class: java.lang.Class<okhttp3.Cache.RealCacheRequest>;
public getDone(): boolean;
public body(): okio.Sink;
public setDone(param0: boolean): void;
public abort(): void;
public constructor(param0: okhttp3.internal.cache.DiskLruCache.Editor);
}
}
}
declare module okhttp3 {
export class CacheControl extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CacheControl>;
public static FORCE_NETWORK: okhttp3.CacheControl;
public static FORCE_CACHE: okhttp3.CacheControl;
/** @deprecated */
public mustRevalidate(): boolean;
public maxStaleSeconds(): number;
public mustRevalidate(): boolean;
public toString(): string;
public static parse(param0: okhttp3.Headers): okhttp3.CacheControl;
/** @deprecated */
public maxAgeSeconds(): number;
/** @deprecated */
public sMaxAgeSeconds(): number;
/** @deprecated */
public noTransform(): boolean;
public minFreshSeconds(): number;
public onlyIfCached(): boolean;
/** @deprecated */
public noStore(): boolean;
public noCache(): boolean;
public noTransform(): boolean;
/** @deprecated */
public minFreshSeconds(): number;
/** @deprecated */
public onlyIfCached(): boolean;
public isPrivate(): boolean;
public immutable(): boolean;
/** @deprecated */
public noCache(): boolean;
public sMaxAgeSeconds(): number;
/** @deprecated */
public immutable(): boolean;
/** @deprecated */
public maxStaleSeconds(): number;
public noStore(): boolean;
public maxAgeSeconds(): number;
public isPublic(): boolean;
}
export module CacheControl {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CacheControl.Builder>;
public noCache(): okhttp3.CacheControl.Builder;
public maxStale(param0: number, param1: java.util.concurrent.TimeUnit): okhttp3.CacheControl.Builder;
public immutable(): okhttp3.CacheControl.Builder;
public onlyIfCached(): okhttp3.CacheControl.Builder;
public minFresh(param0: number, param1: java.util.concurrent.TimeUnit): okhttp3.CacheControl.Builder;
public maxAge(param0: number, param1: java.util.concurrent.TimeUnit): okhttp3.CacheControl.Builder;
public constructor();
public build(): okhttp3.CacheControl;
public noStore(): okhttp3.CacheControl.Builder;
public noTransform(): okhttp3.CacheControl.Builder;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CacheControl.Companion>;
public parse(param0: okhttp3.Headers): okhttp3.CacheControl;
}
}
}
declare module okhttp3 {
export class Call extends java.lang.Object implements java.lang.Cloneable {
public static class: java.lang.Class<okhttp3.Call>;
/**
* Constructs a new instance of the okhttp3.Call interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
request(): okhttp3.Request;
execute(): okhttp3.Response;
enqueue(param0: okhttp3.Callback): void;
cancel(): void;
isExecuted(): boolean;
isCanceled(): boolean;
timeout(): okio.Timeout;
clone(): okhttp3.Call;
});
public constructor();
public isExecuted(): boolean;
public clone(): okhttp3.Call;
public request(): okhttp3.Request;
public execute(): okhttp3.Response;
public isCanceled(): boolean;
public clone(): any;
public enqueue(param0: okhttp3.Callback): void;
public cancel(): void;
public timeout(): okio.Timeout;
}
export module Call {
export class Factory extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Call.Factory>;
/**
* Constructs a new instance of the okhttp3.Call$Factory interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
newCall(param0: okhttp3.Request): okhttp3.Call;
});
public constructor();
public newCall(param0: okhttp3.Request): okhttp3.Call;
}
}
}
declare module okhttp3 {
export class Callback extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Callback>;
/**
* Constructs a new instance of the okhttp3.Callback interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
onFailure(param0: okhttp3.Call, param1: java.io.IOException): void;
onResponse(param0: okhttp3.Call, param1: okhttp3.Response): void;
});
public constructor();
public onResponse(param0: okhttp3.Call, param1: okhttp3.Response): void;
public onFailure(param0: okhttp3.Call, param1: java.io.IOException): void;
}
}
declare module okhttp3 {
export class CertificatePinner extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CertificatePinner>;
public static DEFAULT: okhttp3.CertificatePinner;
public equals(param0: any): boolean;
/** @deprecated */
public check(param0: string, param1: androidNative.Array<java.security.cert.Certificate>): void;
public static sha256Hash(param0: java.security.cert.X509Certificate): okio.ByteString;
public check$okhttp(param0: string, param1: any): void;
public getCertificateChainCleaner$okhttp(): okhttp3.internal.tls.CertificateChainCleaner;
public static sha1Hash(param0: java.security.cert.X509Certificate): okio.ByteString;
public withCertificateChainCleaner$okhttp(param0: okhttp3.internal.tls.CertificateChainCleaner): okhttp3.CertificatePinner;
public static pin(param0: java.security.cert.Certificate): string;
public findMatchingPins(param0: string): java.util.List<okhttp3.CertificatePinner.Pin>;
public hashCode(): number;
public constructor(param0: java.util.Set<okhttp3.CertificatePinner.Pin>, param1: okhttp3.internal.tls.CertificateChainCleaner);
public check(param0: string, param1: java.util.List<any>): void;
public getPins(): java.util.Set<okhttp3.CertificatePinner.Pin>;
}
export module CertificatePinner {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CertificatePinner.Builder>;
public build(): okhttp3.CertificatePinner;
public constructor();
public getPins(): java.util.List<okhttp3.CertificatePinner.Pin>;
public add(param0: string, param1: androidNative.Array<string>): okhttp3.CertificatePinner.Builder;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CertificatePinner.Companion>;
public sha1Hash(param0: java.security.cert.X509Certificate): okio.ByteString;
public sha256Hash(param0: java.security.cert.X509Certificate): okio.ByteString;
public pin(param0: java.security.cert.Certificate): string;
}
export class Pin extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CertificatePinner.Pin>;
public constructor(param0: string, param1: string);
public matchesHostname(param0: string): boolean;
public equals(param0: any): boolean;
public toString(): string;
public matchesCertificate(param0: java.security.cert.X509Certificate): boolean;
public getHash(): okio.ByteString;
public getHashAlgorithm(): string;
public getPattern(): string;
public hashCode(): number;
}
}
}
declare module okhttp3 {
export class Challenge extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Challenge>;
public equals(param0: any): boolean;
public scheme(): string;
/** @deprecated */
public scheme(): string;
public toString(): string;
public constructor(param0: string, param1: java.util.Map<string,string>);
public withCharset(param0: java.nio.charset.Charset): okhttp3.Challenge;
public realm(): string;
public constructor(param0: string, param1: string);
public authParams(): java.util.Map<string,string>;
public charset(): java.nio.charset.Charset;
/** @deprecated */
public charset(): java.nio.charset.Charset;
/** @deprecated */
public authParams(): java.util.Map<string,string>;
public hashCode(): number;
/** @deprecated */
public realm(): string;
}
}
declare module okhttp3 {
export class CipherSuite extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CipherSuite>;
public static TLS_RSA_WITH_NULL_MD5: okhttp3.CipherSuite;
public static TLS_RSA_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_RSA_EXPORT_WITH_RC4_40_MD5: okhttp3.CipherSuite;
public static TLS_RSA_WITH_RC4_128_MD5: okhttp3.CipherSuite;
public static TLS_RSA_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_RSA_EXPORT_WITH_DES40_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_DES_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_DES_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_DES_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DH_anon_EXPORT_WITH_RC4_40_MD5: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_RC4_128_MD5: okhttp3.CipherSuite;
public static TLS_DH_anon_EXPORT_WITH_DES40_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_DES_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_DES_CBC_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_DES_CBC_MD5: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_3DES_EDE_CBC_MD5: okhttp3.CipherSuite;
public static TLS_KRB5_WITH_RC4_128_MD5: okhttp3.CipherSuite;
public static TLS_KRB5_EXPORT_WITH_DES_CBC_40_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_EXPORT_WITH_RC4_40_SHA: okhttp3.CipherSuite;
public static TLS_KRB5_EXPORT_WITH_DES_CBC_40_MD5: okhttp3.CipherSuite;
public static TLS_KRB5_EXPORT_WITH_RC4_40_MD5: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_NULL_SHA256: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_256_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_RSA_WITH_CAMELLIA_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_CAMELLIA_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_CAMELLIA_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_256_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_256_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_256_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_RSA_WITH_CAMELLIA_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_CAMELLIA_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_CAMELLIA_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_PSK_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_PSK_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_PSK_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_PSK_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_SEED_CBC_SHA: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_RSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_DSS_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_DH_anon_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_EMPTY_RENEGOTIATION_INFO_SCSV: okhttp3.CipherSuite;
public static TLS_FALLBACK_SCSV: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_anon_WITH_NULL_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_anon_WITH_RC4_128_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_anon_WITH_3DES_EDE_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_anon_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDH_anon_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_256_CBC_SHA384: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_256_CBC_SHA384: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_ECDH_ECDSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_ECDH_RSA_WITH_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_PSK_WITH_AES_256_CBC_SHA: okhttp3.CipherSuite;
public static TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256: okhttp3.CipherSuite;
public static TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256: okhttp3.CipherSuite;
public static TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256: okhttp3.CipherSuite;
public static TLS_AES_128_GCM_SHA256: okhttp3.CipherSuite;
public static TLS_AES_256_GCM_SHA384: okhttp3.CipherSuite;
public static TLS_CHACHA20_POLY1305_SHA256: okhttp3.CipherSuite;
public static TLS_AES_128_CCM_SHA256: okhttp3.CipherSuite;
public static TLS_AES_128_CCM_8_SHA256: okhttp3.CipherSuite;
public javaName(): string;
public static forJavaName(param0: string): okhttp3.CipherSuite;
/** @deprecated */
public javaName(): string;
public toString(): string;
}
export module CipherSuite {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CipherSuite.Companion>;
public forJavaName(param0: string): okhttp3.CipherSuite;
public getORDER_BY_NAME$okhttp(): java.util.Comparator<string>;
}
}
}
declare module okhttp3 {
export class Connection extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Connection>;
/**
* Constructs a new instance of the okhttp3.Connection interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
route(): okhttp3.Route;
socket(): java.net.Socket;
handshake(): okhttp3.Handshake;
protocol(): okhttp3.Protocol;
});
public constructor();
public route(): okhttp3.Route;
public protocol(): okhttp3.Protocol;
public handshake(): okhttp3.Handshake;
public socket(): java.net.Socket;
}
}
declare module okhttp3 {
export class ConnectionPool extends java.lang.Object {
public static class: java.lang.Class<okhttp3.ConnectionPool>;
public constructor();
public connectionCount(): number;
public getDelegate$okhttp(): okhttp3.internal.connection.RealConnectionPool;
public evictAll(): void;
public idleConnectionCount(): number;
public constructor(param0: okhttp3.internal.connection.RealConnectionPool);
public constructor(param0: number, param1: number, param2: java.util.concurrent.TimeUnit);
}
}
declare module okhttp3 {
export class ConnectionSpec extends java.lang.Object {
public static class: java.lang.Class<okhttp3.ConnectionSpec>;
public static RESTRICTED_TLS: okhttp3.ConnectionSpec;
public static MODERN_TLS: okhttp3.ConnectionSpec;
public static COMPATIBLE_TLS: okhttp3.ConnectionSpec;
public static CLEARTEXT: okhttp3.ConnectionSpec;
/** @deprecated */
public supportsTlsExtensions(): boolean;
public cipherSuites(): java.util.List<okhttp3.CipherSuite>;
public equals(param0: any): boolean;
public supportsTlsExtensions(): boolean;
public tlsVersions(): java.util.List<okhttp3.TlsVersion>;
public toString(): string;
/** @deprecated */
public cipherSuites(): java.util.List<okhttp3.CipherSuite>;
public hashCode(): number;
public isCompatible(param0: javax.net.ssl.SSLSocket): boolean;
public isTls(): boolean;
public apply$okhttp(param0: javax.net.ssl.SSLSocket, param1: boolean): void;
/** @deprecated */
public tlsVersions(): java.util.List<okhttp3.TlsVersion>;
public constructor(param0: boolean, param1: boolean, param2: androidNative.Array<string>, param3: androidNative.Array<string>);
}
export module ConnectionSpec {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.ConnectionSpec.Builder>;
public getCipherSuites$okhttp(): androidNative.Array<string>;
public build(): okhttp3.ConnectionSpec;
public constructor(param0: boolean);
public tlsVersions(param0: androidNative.Array<okhttp3.TlsVersion>): okhttp3.ConnectionSpec.Builder;
public getSupportsTlsExtensions$okhttp(): boolean;
public constructor(param0: okhttp3.ConnectionSpec);
public cipherSuites(param0: androidNative.Array<okhttp3.CipherSuite>): okhttp3.ConnectionSpec.Builder;
public setSupportsTlsExtensions$okhttp(param0: boolean): void;
public setTlsVersions$okhttp(param0: androidNative.Array<string>): void;
/** @deprecated */
public supportsTlsExtensions(param0: boolean): okhttp3.ConnectionSpec.Builder;
public getTls$okhttp(): boolean;
public setTls$okhttp(param0: boolean): void;
public getTlsVersions$okhttp(): androidNative.Array<string>;
public cipherSuites(param0: androidNative.Array<string>): okhttp3.ConnectionSpec.Builder;
public allEnabledCipherSuites(): okhttp3.ConnectionSpec.Builder;
public allEnabledTlsVersions(): okhttp3.ConnectionSpec.Builder;
public setCipherSuites$okhttp(param0: androidNative.Array<string>): void;
public tlsVersions(param0: androidNative.Array<string>): okhttp3.ConnectionSpec.Builder;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.ConnectionSpec.Companion>;
}
}
}
declare module okhttp3 {
export class Cookie extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cookie>;
public equals(param0: any): boolean;
public matches(param0: okhttp3.HttpUrl): boolean;
/** @deprecated */
public hostOnly(): boolean;
/** @deprecated */
public expiresAt(): number;
public httpOnly(): boolean;
/** @deprecated */
public path(): string;
public expiresAt(): number;
/** @deprecated */
public name(): string;
public toString$okhttp(param0: boolean): string;
public hashCode(): number;
/** @deprecated */
public persistent(): boolean;
public secure(): boolean;
/** @deprecated */
public domain(): string;
public domain(): string;
/** @deprecated */
public httpOnly(): boolean;
public static parseAll(param0: okhttp3.HttpUrl, param1: okhttp3.Headers): java.util.List<okhttp3.Cookie>;
/** @deprecated */
public secure(): boolean;
public toString(): string;
/** @deprecated */
public value(): string;
public persistent(): boolean;
public static parse(param0: okhttp3.HttpUrl, param1: string): okhttp3.Cookie;
public hostOnly(): boolean;
public name(): string;
public path(): string;
public value(): string;
}
export module Cookie {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cookie.Builder>;
public domain(param0: string): okhttp3.Cookie.Builder;
public hostOnlyDomain(param0: string): okhttp3.Cookie.Builder;
public value(param0: string): okhttp3.Cookie.Builder;
public httpOnly(): okhttp3.Cookie.Builder;
public secure(): okhttp3.Cookie.Builder;
public expiresAt(param0: number): okhttp3.Cookie.Builder;
public build(): okhttp3.Cookie;
public name(param0: string): okhttp3.Cookie.Builder;
public constructor();
public path(param0: string): okhttp3.Cookie.Builder;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Cookie.Companion>;
public parse$okhttp(param0: number, param1: okhttp3.HttpUrl, param2: string): okhttp3.Cookie;
public parse(param0: okhttp3.HttpUrl, param1: string): okhttp3.Cookie;
public parseAll(param0: okhttp3.HttpUrl, param1: okhttp3.Headers): java.util.List<okhttp3.Cookie>;
}
}
}
declare module okhttp3 {
export class CookieJar extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CookieJar>;
/**
* Constructs a new instance of the okhttp3.CookieJar interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
saveFromResponse(param0: okhttp3.HttpUrl, param1: java.util.List<okhttp3.Cookie>): void;
loadForRequest(param0: okhttp3.HttpUrl): java.util.List<okhttp3.Cookie>;
<clinit>(): void;
});
public constructor();
public static NO_COOKIES: okhttp3.CookieJar;
public loadForRequest(param0: okhttp3.HttpUrl): java.util.List<okhttp3.Cookie>;
public saveFromResponse(param0: okhttp3.HttpUrl, param1: java.util.List<okhttp3.Cookie>): void;
}
export module CookieJar {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.CookieJar.Companion>;
}
export module Companion {
export class NoCookies extends java.lang.Object implements okhttp3.CookieJar {
public static class: java.lang.Class<okhttp3.CookieJar.Companion.NoCookies>;
public loadForRequest(param0: okhttp3.HttpUrl): java.util.List<okhttp3.Cookie>;
public saveFromResponse(param0: okhttp3.HttpUrl, param1: java.util.List<okhttp3.Cookie>): void;
public constructor();
}
}
}
}
declare module okhttp3 {
export class Credentials extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Credentials>;
public static INSTANCE: okhttp3.Credentials;
public static basic(param0: string, param1: string, param2: java.nio.charset.Charset): string;
public static basic(param0: string, param1: string): string;
}
}
declare module okhttp3 {
export class Dispatcher extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Dispatcher>;
public constructor();
public setMaxRequestsPerHost(param0: number): void;
public constructor(param0: java.util.concurrent.ExecutorService);
public queuedCallsCount(): number;
/** @deprecated */
public executorService(): java.util.concurrent.ExecutorService;
public finished$okhttp(param0: okhttp3.internal.connection.RealCall.AsyncCall): void;
public runningCallsCount(): number;
public runningCalls(): java.util.List<okhttp3.Call>;
public cancelAll(): void;
public queuedCalls(): java.util.List<okhttp3.Call>;
public setMaxRequests(param0: number): void;
public getMaxRequestsPerHost(): number;
public executed$okhttp(param0: okhttp3.internal.connection.RealCall): void;
public executorService(): java.util.concurrent.ExecutorService;
public setIdleCallback(param0: java.lang.Runnable): void;
public getIdleCallback(): java.lang.Runnable;
public enqueue$okhttp(param0: okhttp3.internal.connection.RealCall.AsyncCall): void;
public getMaxRequests(): number;
public finished$okhttp(param0: okhttp3.internal.connection.RealCall): void;
}
}
declare module okhttp3 {
export class Dns extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Dns>;
/**
* Constructs a new instance of the okhttp3.Dns interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
lookup(param0: string): java.util.List<java.net.InetAddress>;
<clinit>(): void;
});
public constructor();
public static SYSTEM: okhttp3.Dns;
public lookup(param0: string): java.util.List<java.net.InetAddress>;
}
export module Dns {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Dns.Companion>;
}
export module Companion {
export class DnsSystem extends java.lang.Object implements okhttp3.Dns {
public static class: java.lang.Class<okhttp3.Dns.Companion.DnsSystem>;
public lookup(param0: string): java.util.List<java.net.InetAddress>;
public constructor();
}
}
}
}
declare module okhttp3 {
export abstract class EventListener extends java.lang.Object {
public static class: java.lang.Class<okhttp3.EventListener>;
public static NONE: okhttp3.EventListener;
public connectFailed(param0: okhttp3.Call, param1: java.net.InetSocketAddress, param2: java.net.Proxy, param3: okhttp3.Protocol, param4: java.io.IOException): void;
public proxySelectStart(param0: okhttp3.Call, param1: okhttp3.HttpUrl): void;
public proxySelectEnd(param0: okhttp3.Call, param1: okhttp3.HttpUrl, param2: java.util.List<java.net.Proxy>): void;
public connectionReleased(param0: okhttp3.Call, param1: okhttp3.Connection): void;
public dnsEnd(param0: okhttp3.Call, param1: string, param2: java.util.List<java.net.InetAddress>): void;
public secureConnectEnd(param0: okhttp3.Call, param1: okhttp3.Handshake): void;
public dnsStart(param0: okhttp3.Call, param1: string): void;
public connectEnd(param0: okhttp3.Call, param1: java.net.InetSocketAddress, param2: java.net.Proxy, param3: okhttp3.Protocol): void;
public requestHeadersEnd(param0: okhttp3.Call, param1: okhttp3.Request): void;
public connectStart(param0: okhttp3.Call, param1: java.net.InetSocketAddress, param2: java.net.Proxy): void;
public callFailed(param0: okhttp3.Call, param1: java.io.IOException): void;
public constructor();
public cacheMiss(param0: okhttp3.Call): void;
public callStart(param0: okhttp3.Call): void;
public satisfactionFailure(param0: okhttp3.Call, param1: okhttp3.Response): void;
public responseBodyEnd(param0: okhttp3.Call, param1: number): void;
public responseFailed(param0: okhttp3.Call, param1: java.io.IOException): void;
public callEnd(param0: okhttp3.Call): void;
public secureConnectStart(param0: okhttp3.Call): void;
public responseHeadersEnd(param0: okhttp3.Call, param1: okhttp3.Response): void;
public canceled(param0: okhttp3.Call): void;
public connectionAcquired(param0: okhttp3.Call, param1: okhttp3.Connection): void;
public responseBodyStart(param0: okhttp3.Call): void;
public cacheConditionalHit(param0: okhttp3.Call, param1: okhttp3.Response): void;
public requestBodyEnd(param0: okhttp3.Call, param1: number): void;
public requestFailed(param0: okhttp3.Call, param1: java.io.IOException): void;
public requestHeadersStart(param0: okhttp3.Call): void;
public requestBodyStart(param0: okhttp3.Call): void;
public responseHeadersStart(param0: okhttp3.Call): void;
public cacheHit(param0: okhttp3.Call, param1: okhttp3.Response): void;
}
export module EventListener {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.EventListener.Companion>;
}
export class Factory extends java.lang.Object {
public static class: java.lang.Class<okhttp3.EventListener.Factory>;
/**
* Constructs a new instance of the okhttp3.EventListener$Factory interface with the provided implementation. An empty constructor exists calling super() when extending the interface class.
*/
public constructor(implementation: {
create(param0: okhttp3.Call): okhttp3.EventListener;
});
public constructor();
public create(param0: okhttp3.Call): okhttp3.EventListener;
}
}
}
declare module okhttp3 {
export class FormBody extends okhttp3.RequestBody {
public static class: java.lang.Class<okhttp3.FormBody>;
public constructor();
public value(param0: number): string;
public encodedValue(param0: number): string;
public name(param0: number): string;
public size(): number;
public constructor(param0: java.util.List<string>, param1: java.util.List<string>);
public encodedName(param0: number): string;
public contentType(): okhttp3.MediaType;
public writeTo(param0: okio.BufferedSink): void;
public contentLength(): number;
/** @deprecated */
public size(): number;
}
export module FormBody {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.FormBody.Builder>;
public constructor(param0: java.nio.charset.Charset);
public addEncoded(param0: string, param1: string): okhttp3.FormBody.Builder;
public constructor();
public add(param0: string, param1: string): okhttp3.FormBody.Builder;
public build(): okhttp3.FormBody;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.FormBody.Companion>;
}
}
}
declare module okhttp3 {
export class Handshake extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Handshake>;
/** @deprecated */
public tlsVersion(): okhttp3.TlsVersion;
public equals(param0: any): boolean;
public localCertificates(): java.util.List<java.security.cert.Certificate>;
public peerCertificates(): java.util.List<java.security.cert.Certificate>;
public toString(): string;
public peerPrincipal(): java.security.Principal;
public static get(param0: okhttp3.TlsVersion, param1: okhttp3.CipherSuite, param2: java.util.List<any>, param3: java.util.List<any>): okhttp3.Handshake;
/** @deprecated */
public cipherSuite(): okhttp3.CipherSuite;
public static get(param0: javax.net.ssl.SSLSession): okhttp3.Handshake;
public constructor(param0: okhttp3.TlsVersion, param1: okhttp3.CipherSuite, param2: java.util.List<any>, param3: any);
/** @deprecated */
public peerPrincipal(): java.security.Principal;
/** @deprecated */
public localPrincipal(): java.security.Principal;
public hashCode(): number;
/** @deprecated */
public localCertificates(): java.util.List<java.security.cert.Certificate>;
public localPrincipal(): java.security.Principal;
public tlsVersion(): okhttp3.TlsVersion;
/** @deprecated */
public peerCertificates(): java.util.List<java.security.cert.Certificate>;
public cipherSuite(): okhttp3.CipherSuite;
}
export module Handshake {
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Handshake.Companion>;
public get(param0: javax.net.ssl.SSLSession): okhttp3.Handshake;
public get(param0: okhttp3.TlsVersion, param1: okhttp3.CipherSuite, param2: java.util.List<any>, param3: java.util.List<any>): okhttp3.Handshake;
/** @deprecated */
public get(param0: javax.net.ssl.SSLSession): okhttp3.Handshake;
}
}
}
declare module okhttp3 {
export class Headers extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Headers>;
public value(param0: number): string;
public equals(param0: any): boolean;
public newBuilder(): okhttp3.Headers.Builder;
public forEach(param0: any /* any*/): void;
public getInstant(param0: string): java.time.Instant;
public iterator(): java.util.Iterator<any>;
public toString(): string;
public get(param0: string): string;
public values(param0: string): java.util.List<string>;
public names(): java.util.Set<string>;
public name(param0: number): string;
public size(): number;
public iterator(): java.util.Iterator<any>;
public spliterator(): java.util.Spliterator<any>;
public hashCode(): number;
public toMultimap(): java.util.Map<string,java.util.List<string>>;
public getDate(param0: string): java.util.Date;
public byteCount(): number;
/** @deprecated */
public size(): number;
}
export module Headers {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Headers.Builder>;
public get(param0: string): string;
public build(): okhttp3.Headers;
public set(param0: string, param1: java.time.Instant): okhttp3.Headers.Builder;
public getNamesAndValues$okhttp(): java.util.List<string>;
public set(param0: string, param1: string): okhttp3.Headers.Builder;
public constructor();
public addAll(param0: okhttp3.Headers): okhttp3.Headers.Builder;
public addLenient$okhttp(param0: string, param1: string): okhttp3.Headers.Builder;
public add(param0: string, param1: string): okhttp3.Headers.Builder;
public removeAll(param0: string): okhttp3.Headers.Builder;
public add(param0: string, param1: java.time.Instant): okhttp3.Headers.Builder;
public set(param0: string, param1: java.util.Date): okhttp3.Headers.Builder;
public add(param0: string): okhttp3.Headers.Builder;
public addUnsafeNonAscii(param0: string, param1: string): okhttp3.Headers.Builder;
public addLenient$okhttp(param0: string): okhttp3.Headers.Builder;
public add(param0: string, param1: java.util.Date): okhttp3.Headers.Builder;
}
export class Companion extends java.lang.Object {
public static class: java.lang.Class<okhttp3.Headers.Companion>;
/** @deprecated */
public of(param0: androidNative.Array<string>): okhttp3.Headers;
/** @deprecated */
public of(param0: java.util.Map<string,string>): okhttp3.Headers;
}
}
}
declare module okhttp3 {
export class HttpUrl extends java.lang.Object {
public static class: java.lang.Class<okhttp3.HttpUrl>;
public static USERNAME_ENCODE_SET: string;
public static PASSWORD_ENCODE_SET: string;
public static PATH_SEGMENT_ENCODE_SET: string;
public static PATH_SEGMENT_ENCODE_SET_URI: string;
public static QUERY_ENCODE_SET: string;
public static QUERY_COMPONENT_REENCODE_SET: string;
public static QUERY_COMPONENT_ENCODE_SET: string;
public static QUERY_COMPONENT_ENCODE_SET_URI: string;
public static FORM_ENCODE_SET: string;
public static FRAGMENT_ENCODE_SET: string;
public static FRAGMENT_ENCODE_SET_URI: string;
public static get(param0: java.net.URI): okhttp3.HttpUrl;
public equals(param0: any): boolean;
public topPrivateDomain(): string;
public queryParameterName(param0: number): string;
/** @deprecated */
public queryParameterNames(): java.util.Set<string>;
public queryParameterNames(): java.util.Set<string>;
/** @deprecated */
public port(): number;
public encodedPassword(): string;
public query(): string;
/** @deprecated */
public pathSegments(): java.util.List<string>;
/** @deprecated */
public username(): string;
/** @deprecated */
public encodedUsername(): string;
public static get(param0: string): okhttp3.HttpUrl;
public pathSize(): number;
public isHttps(): boolean;
/** @deprecated */
public host(): string;
public newBuilder(): okhttp3.HttpUrl.Builder;
public port(): number;
public encodedFragment(): string;
public redact(): string;
/** @deprecated */
public scheme(): string;
public fragment(): string;
public toString(): string;
public uri(): java.net.URI;
/** @deprecated */
public encodedQuery(): string;
public queryParameterValue(param0: number): string;
/** @deprecated */
public encodedFragment(): string;
public host(): string;
public static get(param0: java.net.URL): okhttp3.HttpUrl;
/** @deprecated */
public password(): string;
public url(): java.net.URL;
public querySize(): number;
public static defaultPort(param0: string): number;
public scheme(): string;
/** @deprecated */
public uri(): java.net.URI;
public constructor(param0: string, param1: string, param2: string, param3: string, param4: number, param5: java.util.List<string>, param6: java.util.List<string>, param7: string, param8: string);
public queryParameter(param0: string): string;
/** @deprecated */
public encodedPathSegments(): java.util.List<string>;
public password(): string;
public hashCode(): number;
public resolve(param0: string): okhttp3.HttpUrl;
public encodedPathSegments(): java.util.List<string>;
public encodedQuery(): string;
public encodedPath(): string;
/** @deprecated */
public pathSize(): number;
/** @deprecated */
public encodedPath(): string;
public encodedUsername(): string;
public queryParameterValues(param0: string): java.util.List<string>;
/** @deprecated */
public fragment(): string;
public newBuilder(param0: string): okhttp3.HttpUrl.Builder;
/** @deprecated */
public query(): string;
public pathSegments(): java.util.List<string>;
public static parse(param0: string): okhttp3.HttpUrl;
/** @deprecated */
public url(): java.net.URL;
/** @deprecated */
public encodedPassword(): string;
/** @deprecated */
public querySize(): number;
public username(): string;
}
export module HttpUrl {
export class Builder extends java.lang.Object {
public static class: java.lang.Class<okhttp3.HttpUrl.Builder>;
public static INVALID_HOST: string;
public addPathSegment(param0: string): okhttp3.HttpUrl.Builder;
public addEncodedPathSegment(param0: string): okhttp3.HttpUrl.Builder;
public setEncodedQueryParameter(param0: string, param1: string): okhttp3.HttpUrl.Builder;
public setQueryParameter(param0: string, param1: string): okhttp3.HttpUrl.Builder;
public setEncodedQueryNamesAndValues$okhttp(param0: java.util.List<string>): void;
public getEncodedQueryNamesAndValues$okhttp(): java.util.List<string>;