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

4602 Commits

Author SHA1 Message Date
Yuri Schimke
6ec4e340f8 Fix flaky LoggingEventListenerTest 2020-05-08 17:56:47 +01:00
Yuri Schimke
ffcbd0f9e0 Missed copyright notice (#6030) 2020-05-07 22:04:36 +01:00
Nicola Corti
050ff3dce6 Fixing duplicated word in KDoc for Authenticator (#6027) 2020-05-07 21:49:49 +01:00
Kevin Robatel
87c57ec41e Add constant OkHttp.VERSION (#5981) 2020-05-07 20:37:15 +01:00
Yuri Schimke
7b7eca566d Gradle 6.4 Upgrade (#6023) 2020-05-07 18:19:35 +01:00
Yuri Schimke
8e8863b92f Caching Docs [draft] (#6009) 2020-05-07 07:03:15 +01:00
Yuri Schimke
f631abab4d Add Cache events to LoggingEventListener (#6020) 2020-05-07 06:54:17 +01:00
monkey-mas
a252a93df5 Use Timeout#seconds(long) instead of deprecated Timeout(long) constructor in DiskLruCacheTest (#6021)
We have the compile warning below.
```
okhttp/okhttp/src/test/java/okhttp3/internal/cache/DiskLruCacheTest.kt: (57, 17): 'constructor Timeout(Int)' is deprecated. Deprecated in Java
```

To fix it, we'll follow the comment in the `Timeout` class.
```
* Instead use {@link #Timeout(long, java.util.concurrent.TimeUnit)},
* {@link Timeout#millis(long)}, or {@link Timeout#seconds(long)}.
```
2020-05-06 09:08:36 +01:00
Yuri Schimke
8cebf9012b Cache Events (#6015)
Provide EventListener methods to understand the impact of caching.
2020-05-05 18:25:06 +01:00
Yuri Schimke
af1eadfebf Record Http2 Frames and TaskRunner optionally for Flaky tests (#6011) 2020-05-03 20:21:12 +01:00
Yuri Schimke
80bee1afdd Confirm android logging disabled (#6008) 2020-05-02 09:12:41 -04:00
Yuri Schimke
93ac4fa3b9 Android Cache Test (#6010) 2020-05-01 18:47:29 +01:00
Yuri Schimke
5c10006e0a Centralise logging behind JUL (#6005)
Use JUL, but wire up to the Android Log.

Use `adb shell setprop log.tag.okhttp.Http2 DEBUG` to enable logging for known levels.
2020-04-30 19:04:19 +01:00
Jesse Wilson
0920ddf0db Rewrite the location header in the reverting interceptor (#6002) 2020-04-29 07:23:53 +01:00
Jesse Wilson
68241851c1 Prepare next development version. 2020-04-29 00:52:55 -04:00
Jesse Wilson
0deadd5611 Prepare for release 4.6.0. parent-4.6.0 2020-04-29 00:52:51 -04:00
Yuri Schimke
0cc3aefa8e Complies with rfc7231 about statuses 307 and 308 (#5990)
* Complies with rfc7231 about statuses 307 and 308

Author:    Vladimir Kravets <vova.kravets@gmail.com>

* Add revert test

* Remove @NotNull annotations; we don’t use ’em.

Co-authored-by: Vladimir Kravets <vova.kravets@gmail.com>
Co-authored-by: Jesse Wilson <jesse@swank.ca>
2020-04-28 18:53:27 -04:00
Jesse Wilson
269f5567ae Confirm MultipartBody and MultipartReader can work together (#5999) 2020-04-28 08:11:43 +01:00
Jesse Wilson
42954034ab Merge pull request #5998 from square/jwilson.0427.fresh_public_suffixes
Update the public suffixes DB
2020-04-27 18:52:22 -04:00
Jesse Wilson
16ca1d46c6 Update the public suffixes DB
Also check in the raw public suffixes DB into our test/ directory for
easier diffing
2020-04-27 18:45:43 -04:00
Jesse Wilson
8036ad42b0 Check in the old public suffix DB 2020-04-27 18:45:11 -04:00
Jesse Wilson
a1bc5c625d Merge pull request #5996 from square/jwilson.0427.response_body
Parse response bodies as multipart
2020-04-27 09:54:33 -04:00
Jesse Wilson
9d3eb93b8b Parse response bodies as multipart 2020-04-27 09:38:13 -04:00
Jesse Wilson
f7c66edc5c Merge pull request #5993 from square/jwilson.0426.multipart_reader
Multipart reader first steps
2020-04-27 08:45:36 -04:00
Jesse Wilson
37a7e7e9d1 Multipart reader first steps
Still to do:
 - API to get the boundary parameter from a MediaType
 - API to create a MultipartReader from a ResponseBody
 - Update to support RFC 2387 features?
2020-04-27 08:45:08 -04:00
Jesse Wilson
1f1146ea42 Add an API to look up media type parameters (#5994)
This changes our behavior for repeated charsets. Previously we would
crash; now we return the first value.
2020-04-27 08:14:37 +01:00
Jesse Wilson
f4859c763b Merge pull request #5987 from yschimke/android_fix
Fix for android test
2020-04-25 20:47:22 -04:00
Jesse Wilson
8e5d0fb9a6 Merge pull request #5988 from yschimke/disable_win
Disable Windows Builds on master
2020-04-25 20:46:38 -04:00
Yuri Schimke
26ff8512f4 Disable Windows Builds on master 2020-04-25 14:17:10 +01:00
Jesse Wilson
b09714de37 Merge pull request #5986 from yschimke/android_docs
Android docs for selecting devices
2020-04-25 07:38:54 -04:00
Yuri Schimke
27c78a7a47 Fix for android 2020-04-25 10:16:52 +01:00
monkey-mas
974fe73385 Fix Kdoc class path with full package path in JavaNetAuthenticator (#5985)
Since Kdoc needs a full path to Kotliln class/function, we'll add 'okhttp3' prefix.
2020-04-25 08:21:28 +01:00
Yuri Schimke
d56eb776e5 Android docs for selecting devices 2020-04-25 08:17:28 +01:00
Yuri Schimke
f3b2a47ce9 Java Net Authenticator (#5978)
Refactors the okhttp-urlconnection implementation.
2020-04-24 08:40:33 +01:00
Jesse Wilson
3ca806c24b Don't crash processing fragmented web sockets messages (#5983)
* Don't crash processing fragmented web sockets messages

Closes: https://github.com/square/okhttp/issues/5965

* Update okhttp-testing-support/src/main/kotlin/okhttp3/TestUtil.kt

Co-Authored-By: Jake Wharton <jakew@google.com>

* Update okhttp-testing-support/src/main/kotlin/okhttp3/TestUtil.kt

Co-Authored-By: Jake Wharton <jakew@google.com>

* Update okhttp-testing-support/src/main/kotlin/okhttp3/TestUtil.kt

Co-Authored-By: Jake Wharton <jakew@google.com>

Co-authored-by: Jake Wharton <jakew@google.com>
2020-04-23 23:31:36 -04:00
Jesse Wilson
ba21ef7e35 Merge pull request #5984 from square/masaru.2020-04-23.refactor-ssl-socket
Refactor Jdk9PlatformTest by using DelegatingSSLSocket
2020-04-23 22:49:06 -04:00
Masaru Nomura
bc3c787ea2 Refactor Jdk9PlatformTest by using DelegatingSSLSocket
Cont. https://github.com/square/okhttp/pull/5972

We can use DelegatingSSLSocket instead of overriding SSLSocket abstract class.
2020-04-23 22:41:47 -04:00
Yuri Schimke
7cfcf8e6c4 UnsupportedOperationException from JDK8 252 onwards (#5972)
* UnsupportedOperationException from JDK8 252 onwards

* typo

* semicolon

* Allow for JDK 8 with ALPN built in

* Add test

* Fix

* Fix test
2020-04-23 21:39:41 -04:00
Yuri Schimke
28404b1c3a CircleCI JDK bumps (#5974) 2020-04-22 08:05:46 +01:00
Jake Wharton
0e3c2134cb Merge pull request #5966 from square/jakew/actions/2020-04-20
Migrate from Travis to GitHub Action for publishing
2020-04-20 14:50:12 -04:00
Jake Wharton
ba5d3e278b Migrate from Travis to GitHub Action for publishing 2020-04-20 14:07:10 -04:00
Yuri Schimke
20812ac497 Simpler emulator instructions (#5962) 2020-04-19 08:26:31 +01:00
Yuri Schimke
448659eb1c Use Android API for NetworkSecurityPolicy (#5959)
* Use Android API

* Cleanup
2020-04-18 15:26:22 -04:00
Jesse Wilson
550cc11989 Merge pull request #5960 from yschimke/test_which_method_called
Test which TrustManager method called on Android
2020-04-18 15:25:39 -04:00
Yuri Schimke
65624f5f5b Avoid reflection in AndroidCertificateChainCleaner (#5961)
* Avoid reflection in AndroidCertificateChainCleaner

* clean
2020-04-18 15:24:55 -04:00
Yuri Schimke
27454cdec7 Test which TrustManager method called on Android 2020-04-18 10:08:30 +01:00
Yuri Schimke
cd72237328 Clean up SSL state in OkHttpClient (#5949)
* Clean client states

* Clean

* Fix

* Cleanup

* F

* Cleanup
2020-04-16 21:23:37 -04:00
Yuri Schimke
d51f04aaa1 More complete cancel test (#5943) 2020-04-13 07:46:43 +01:00
Yuri Schimke
d9c8fbf3b2 Confirm MockWebServer shutdown is idempotent (#5946) 2020-04-13 06:49:58 +01:00
Yuri Schimke
0730aeba9b Update followSslRedirects documentation (#5945)
* Update followSslRedirects documentation

* Update OkHttpClient.kt
2020-04-12 18:55:51 -04:00