1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-14 07:22:20 +03:00
Commit Graph

3883 Commits

Author SHA1 Message Date
Jesse Wilson
33db7d9ef6 Convert Http2Stream to Kotlin (#5009)
* Rename Http2Stream.java to .kt

* Convert Http2Stream to Kotlin
2019-05-04 20:49:46 -04:00
Jesse Wilson
ec1f47ba2d Convert ConnectionSpecSelector to Kotlin (#5012)
* Rename ConnectionSpecSelector.java to .kt

* Convert ConnectionSpecSelector to Kotlin
2019-05-04 17:44:45 -04:00
Egor Andreevich
3c0ed56d07 Convert MockDuplexResponseBody.java to Kotlin (#5008)
* Convert MockDuplexResponseBody.java to Kotlin

* Rename MockDuplexResponseBody.java to .kt

* Fix spotless

* Update Japicmp excludes
2019-05-04 17:04:34 -04:00
Jesse Wilson
73713c8bd0 Convert RouteSelector to Kotlin (#5010)
* Rename RouteSelector.java to .kt

* Convert RouteSelector to Kotlin

* Update okhttp/src/main/java/okhttp3/internal/connection/RouteSelector.kt

Co-Authored-By: swankjesse <jesse@swank.ca>
2019-05-04 16:55:36 -04:00
Egor Andreevich
6bb4669cc5 Convert DuplexResponseBody.java to Kotlin (#5006)
* Convert DuplexResponseBody.java to Kotlin

* Rename DuplexResponseBody.java to .kt
2019-05-03 21:50:44 -04:00
Egor Andreevich
c3c9e191cd Convert MwsDuplexAccess.java to Kotlin (#5005)
* Convert MwsDuplexAccess.java to Kotlin

* Rename MwsDuplexAccess.java to .kt

* JvmStatic -> JvmField
2019-05-03 21:36:21 -04:00
Jesse Wilson
6f3ff5c194 Convert Huffman to Kotlin (#4999)
* Rename Huffman.java to .kt

* Convert Huffman to Kotlin

I did more work than I should have in this PR.
2019-05-03 20:20:14 -04:00
Jake Wharton
b3eb9efc5b Merge pull request #5001 from TangHuaiZhe/dev1
Fix Kotlin doc reference
2019-05-03 09:02:52 -04:00
Tang HuaiZhe
f950f1c69c Fix Kotlin doc reference
update
2019-05-03 14:40:57 +08:00
TangHuaiZhe
905b53b6f3 Convert mockwebserver/QueueDispatcher and Dispatcher to Kotlin (#4998)
* Rename mockwebserver/Dispatcher to kt

* Convert mockwebserver/Dispatcher to Kotlin

* Rename mockwebserver/QueueDispatcher to kt

* Convert mockwebserver/QueueDispatcher to Kotlin

update
2019-05-02 20:28:31 -04:00
TangHuaiZhe
07d35f24b9 Convert CacheInterceptor to kotlin (#4997)
* Rename CacheInterceptor to kotlin

* Convert CacheInterceptor to kotlin

update
2019-05-02 08:16:26 -04:00
Ryan O'Meara
a8c65a822d Increase documentation of HttpUrl.Builder (#4983)
* Increase documentation of HttpUrl.Builder

Add documentation for the `HttpUrl.newBuilder()` method indicating that initial values are read from the existing URL, and for `HttpUrl.Builder.scheme` indicating the legal values for the `scheme` parameter

* Quote the possible values of scheme in Javadoc

* Fix puncuation on scheme and newBuilder JavaDoc
2019-04-29 20:18:00 -04:00
Jesse Wilson
8b55ef07ab Merge pull request #4990 from square/jwilson.0428.dn_parser_dead
Delete the unused DistinguishedNameParser.
2019-04-28 14:11:41 -05:00
Jesse Wilson
8464c2502c Delete the unused DistinguishedNameParser.
This hasn't been used since we stopped supporting CN verification in
#3764.
2019-04-28 14:12:27 -04:00
Jesse Wilson
7f800e6106 Convert Hpack to Kotlin (#4987)
* Rename Hpack.java to .kt

* Convert Hpack to Kotlin
2019-04-28 12:42:14 -05:00
Jesse Wilson
fc7ac8ae0b Merge pull request #4989 from TangHuaiZhe/dev2
Convert RetryAndFollowUpInterceptor to Kotlin
2019-04-28 10:58:11 -05:00
Tang HuaiZhe
1e386df1fe Convert RetryAndFollowUpInterceptor to Kotlin
Update RetryAndFollowUpInterceptor.kt
2019-04-28 22:17:09 +08:00
Jesse Wilson
64573c4414 Merge pull request #4985 from yschimke/travis_jdk8_only
Travis CI builds in JDK 8 only
2019-04-27 10:18:15 -04:00
Yuri Schimke
6e1020eaf5 Travis CI builds in JDK 8 only
No need to build all here given progress towards CircleCI.
2019-04-27 05:17:34 +01:00
Jesse Wilson
23ca0ea3bb Convert Http2Reader, Http2Writer to Kotlin (#4982)
* Rename Http2.java to .kt (and others)

* Convert Http2Reader, Http2Writer to Kotlin
2019-04-26 16:27:06 -05:00
Jesse Wilson
5acc34753c Merge pull request #4979 from amirlivneh/HttpOverHttp2Test-warnings
Clean up errorprone warning
2019-04-26 16:22:04 -05:00
Jesse Wilson
725c5043fd Merge pull request #4978 from amirlivneh/responseHeadersAfterGoaway-exception
Fix IllegalArgumentException in responseHeadersAfterGoaway test
2019-04-26 16:16:52 -05:00
Amir Livneh
47351f57d0 Clean up errorprone warning 2019-04-25 16:23:09 -07:00
Amir Livneh
04415f3095 Fix IllegalArgumentException in responseHeadersAfterGoaway test
This test sometimes throws an IllegalArgumentException when SynchronousQueue.add() is called before or between the calls to SynchronousQueue.poll().
2019-04-25 16:12:34 -07:00
Jesse Wilson
475a02420b Merge pull request #4970 from amirlivneh/rechostnameverifier-race-condition
Fix race condition in RecordingHostnameVerifier
2019-04-25 01:53:15 -04:00
Amir Livneh
8deaef6702 Fix race condition in RecordingHostnameVerifier
When connections are established concurrently, verify() sometimes throws a `java.lang.ArrayIndexOutOfBoundsException: Index 1 out of bounds for length 0` because of unsynchronized access to the `calls` list.
2019-04-23 10:19:22 -07:00
Jesse Wilson
cc7e3c8e99 Merge pull request #4973 from yschimke/working_jdk12
Tests working with JDK12
2019-04-22 17:54:21 -04:00
Shaishav Gandhi
c122c54667 Convert WebSocketProtocol to Kotlin (#4961)
* Convert WebSocketProtocol to Kotlin

* Fix kdoc

* Add license header

* Parens

* Remove experimental byte xor

* Make internal functions public
2019-04-22 17:52:47 -04:00
Thz
69cfe551c5 Convert CallServerInterceptor to Kotlin (#4954)
* Rename CallServerInterceptor to Kotlin

* Convert CallServerInterceptor to Kotlin

update

Fix spotlessApply

* Fix Jedi mind trick comment and string template
2019-04-22 17:50:18 -04:00
Yuri Schimke
4cb4e2781d Tests working with JDK12 2019-04-22 16:02:08 +01:00
Jake Wharton
243de952a8 Merge pull request #4962 from yschimke/avoid_errorprone
Avoid errorprone in JDK12
2019-04-22 09:16:42 -04:00
Jesse Wilson
af59d56fd3 Merge pull request #4968 from amirlivneh/requestbody-create-test
Exercise overload of RequestBody.create() that takes a ByteString
2019-04-19 18:13:41 -04:00
Amir Livneh
9e0e9654f0 Exercise overload of RequestBody.create() that takes a ByteString
There is currently no test coverage for it.
2019-04-19 14:12:39 -04:00
Yuri Schimke
5f93ef292d Avoid errorprone in JDK12 2019-04-18 07:15:14 +01:00
Yuri Schimke
3256f0bddc Gradle 5.4 upgrade (#4959) 2019-04-16 22:00:54 +01:00
Yuri Schimke
63ae337da8 Example Kotlin Cleanups (#4952) 2019-04-16 19:59:23 +01:00
Thz
7590455292 Convert ConnectInterceptor to Kotlin (#4955)
* Convert ConnectInterceptor to Kotlin

* Rename ConnectInterceptor to Kotlin
2019-04-15 11:25:04 -04:00
Jesse Wilson
aed9ba2762 Convert DiskLruCache to Kotlin (#4947)
* Rename DiskLruCache.java to .kt

* Convert DiskLruCache to Kotlin
2019-04-14 22:48:38 -04:00
Jesse Wilson
b15b93c542 Merge pull request #4946 from yschimke/mutate_all_the_state
Fix interceptors Kotlin source incompatibility
2019-04-14 10:02:18 -04:00
Yuri Schimke
1cc6564c89 Fix kotlin source incompatibility 2019-04-14 14:19:15 +01:00
Jesse Wilson
c11c19b9ec Convert OkHostnameVerifier and BasicTrustRootIndex to Kotlin (#4940)
* Rename OkHostnameVerifier.java to .kt

* Convert OkHostnameVerifier and BasicTrustRootIndex to Kotlin

* Update okhttp/src/main/java/okhttp3/internal/tls/OkHostnameVerifier.kt

Co-Authored-By: swankjesse <jesse@swank.ca>

* Update okhttp/src/main/java/okhttp3/internal/tls/OkHostnameVerifier.kt

Co-Authored-By: swankjesse <jesse@swank.ca>

* Update okhttp/src/main/java/okhttp3/internal/tls/OkHostnameVerifier.kt

Co-Authored-By: swankjesse <jesse@swank.ca>
2019-04-14 08:49:31 -04:00
Jesse Wilson
74a9c28ba0 Convert RealEventSource.java to .kt (#4910)
* Rename RealEventSource.java to .kt

* Convert RealEventSource.java to .kt
2019-04-14 08:16:06 -04:00
Yuri Schimke
43a2748900 ExchangeCodec Kotlin (#4943) 2019-04-14 08:31:14 +01:00
Jesse Wilson
2cbbdddcbd Merge pull request #4939 from amirlivneh/reproduce-4915
Test proxy disconnecting before sending response headers
2019-04-13 11:38:20 -04:00
Amir Livneh
ab3ff2d95f Test proxy disconnecting before sending response headers
Reproduces https://github.com/square/okhttp/issues/4915
2019-04-13 11:00:58 -04:00
Yuri Schimke
ad2c3898c8 Intellij Cleanup (#4932) 2019-04-13 14:47:24 +01:00
Shaishav Gandhi
dde7194d1a Move http classes to Kotlin (#4935)
* Move http classes to Kotlin

* Idiomatic kotlin
2019-04-13 09:22:30 -04:00
Thz
ccf1ef0bcd Convert BridgeInterceptor to Kotlin (#4923)
* Convert BridgeInterceptor to Kotlin

Convert BridgeInterceptor to Kotlin

* Fix compile error caused by reference Version.java from kotlin class

Adjust Code Style

Adjust code style

* Fix merge conflicts and  format violations hinted by spotless
2019-04-13 09:18:10 -04:00
Yuri Schimke
9f5a96fe7c Fix merge conflicts after spotless applied (#4933) 2019-04-12 21:54:08 +01:00
Yuri Schimke
b89e9ed5c4 Fix kotlin source compatibility with logger (#4927)
* Document broken kotlin source

* Fix existing code
2019-04-12 16:18:34 -04:00