Jesse Wilson
ef7c5f358e
Prepare for release 4.7.0.
parent-4.7.0
2020-05-17 13:52:53 -04:00
Yuri Schimke
15b7d47185
JSSE Debug in tests ( #6041 )
2020-05-17 18:10:09 +01:00
Jesse Wilson
72cb889c86
Move VERSION to okhttp3.OkHttp.VERSION ( #6059 )
...
It was previously okhttp3.VERSION, which is awkward because either
you import the symbol (and then it's unclear whose VERSION you're
talking about) or your fully qualify it (and that's unusual on its
own when there are no conflicts.
2020-05-17 18:02:11 +01:00
Yuri Schimke
198900de0b
Fix isAndroid check ( #6055 )
...
Fix for OkHttp platform issues in AndroidStudio (e.g. when running as a plugin)
square/retrofit#3389
2020-05-16 09:09:46 +01:00
Yuri Schimke
fea8fbba5f
Attempt to minimise WebSocket test flakiness ( #6045 )
2020-05-13 07:46:19 +01:00
Yuri Schimke
5f67bd1e5b
Set implicit Accept for EventSource ( #6044 )
2020-05-13 07:33:03 +01:00
Jesse Wilson
836c2f9689
Merge pull request #6047 from yschimke/ping
...
Avoid any chance at NPE in RealWebSocket
2020-05-12 23:11:40 -04:00
Yuri Schimke
390ee838ab
Avoid any chance at NPE
2020-05-12 21:23:42 +01:00
Jesse Wilson
482f88300f
Merge pull request #6040 from square/jwilson.0509.insecureHost
...
HandshakeCertificates.Builder.addInsecureHost()
2020-05-11 18:04:02 -04:00
Jesse Wilson
1364ea44ae
HandshakeCertificates.Builder.addInsecureHost()
...
This API continues the work started here:
https://github.com/square/okhttp/pull/5872
2020-05-11 17:35:02 -04:00
Jesse Wilson
020799f7c2
Merge pull request #6039 from yschimke/remove_stderr
...
Cleanup stderr output
2020-05-10 11:07:16 -04:00
Yuri Schimke
a1b0855d68
Cleanup stderr output
2020-05-09 18:43:27 +01:00
Yuri Schimke
4bd93ad176
Rethrow original failure in OkHttpClientTestRule ( #6037 )
2020-05-09 17:12:34 +01:00
Yuri Schimke
2d21be1184
Custom trust example & API for certificate decoding ( #6032 )
2020-05-09 14:40:15 +01:00
Yuri Schimke
e31cb03d86
Fix flaky CancelTest ( #6035 )
...
* Fix flaky CancelTest
* Test for flaky cancel event
2020-05-08 21:02:11 -04:00
Jesse Wilson
e673539d1d
Merge pull request #6034 from yschimke/fix_flaky_LoggingEventListenerTest
...
Fix flaky LoggingEventListenerTest
2020-05-08 21:01:29 -04:00
Yuri Schimke
e2809002b9
Document auth retries function ( #6031 )
...
* Document auth retries function
* Update Authenticator.kt
2020-05-08 21:00:07 -04:00
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