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

5073 Commits

Author SHA1 Message Date
Jesse Wilson
70e4e9802e Canceling and Interrupting doc 2022-03-26 15:35:45 -04:00
renovate[bot]
1f44775c80 Update actions/cache action to v3 (#7174)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-22 15:07:55 +00:00
Yuri Schimke
7b40b33c33 Include an okhttp-android baseline. (#7172)
Evaluating the benefit of a baseline profile for okhttp.

Apps that use baseline profiles, but test the activities rather than network requests would benefit.
2022-03-21 11:22:00 +00:00
Yuri Schimke
fc77503303 Android module and Async Dns (#7157)
Adds an android module as an aar file.  The first functionality is an AsyncDns implementation for Android DnsResolver.
2022-03-20 06:48:45 +00:00
Jesse Wilson
513a5435c0 Change how HTTP 1xx responses work in MockWebServer (#7169)
* Change how HTTP 1xx responses work in MockWebServer

Previously this was a SocketPolicy. With this change each
response may carry 0 or more informational responses which
are transmitted before the ultimate response.

* Add a test for multiple 1xx responses

* Update API
2022-03-19 20:17:50 -07:00
Jesse Wilson
9e039e9412 Don't interpret headers as trailers after a 100 response (#7168)
This only occurs when the response body is empty.

Closes: https://github.com/square/okhttp/issues/7167
2022-03-19 06:52:45 -07:00
renovate[bot]
b20a52c917 Update mikepenz/action-junit-report action to v3 (#7166)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-18 23:45:10 -04:00
renovate[bot]
f4aabf3d03 Update dependency org.eclipse.platform:org.eclipse.osgi to v3.17.200 (#7159)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 20:30:47 +00:00
renovate[bot]
72ff42f686 Update dependency org.robolectric:android-all to v12.1-robolectric-8229987 (#7158)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-15 09:08:09 +00:00
Jesse Wilson
c4bece4191 Prepare next development version. 2022-03-14 11:25:27 -07:00
Jesse Wilson
fe46bbc882 Prepare for release 5.0.0-alpha.6. parent-5.0.0-alpha.6 2022-03-14 11:23:44 -07:00
Jesse Wilson
b2310de1a8 Never put pooled connections in the result queue (#7154)
In a race this could cause us to prefer a new connection over
a pooled connection, which violates our invariant that pooled
connections are always used if they're found.

Closes: https://github.com/square/okhttp/issues/7152
2022-03-10 21:54:56 -05:00
Jesse Wilson
34c0365e8f Turn off Spotless style enforcement (#7155)
The ratchet thing doesn't work for me 'cause I can't get it
to reformat what I've changed.

Also it's needlessly inconsistent with .editorconfig. We should
wait until that's fixed and possibly try again.
2022-03-10 10:00:42 -05:00
Yuri Schimke
ab5cadd7f8 Fix coroutines publishing (#7150) 2022-03-09 21:01:54 +00:00
Yuri Schimke
e5fe1c7a48 Prepare next development version. (#7149) 2022-03-09 19:14:14 +00:00
renovate[bot]
e91d137976 Update dependency gradle to v7.4.1 (#7148)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-09 18:24:54 +00:00
Yuri Schimke
0d2f2eb346 Coroutines module. (#7142)
Implementation of an extension method which is used directly on JVM, and shadows an implementation
directly in Call on other platforms.
2022-03-06 15:31:31 +00:00
Goooler
95ac5e3531 Use gradle-build-action on CI (#7138) 2022-03-03 18:31:29 +00:00
renovate[bot]
a5404f7273 Update actions/checkout action to v3 (#7137)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-01 22:36:38 -05:00
renovate[bot]
f2386ead31 Update dependency com.google.guava:guava to v31.1-jre (#7134)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-03-01 08:34:20 +00:00
Yuri Schimke
d9b90e1b2c Fix a failing android test and cleanup (#7135) 2022-03-01 07:23:28 +00:00
Yuri Schimke
c426875004 Fix buids on PRs (#7136) 2022-03-01 07:22:32 +00:00
Yuri Schimke
7039c4a356 Spotless with ratchet (#7133)
Co-authored-by: Goooler <wangzongler@gmail.com>
2022-02-28 22:15:12 +00:00
renovate[bot]
4256335242 Update dependency com.puppycrawl.tools:checkstyle to v10 (#7131)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-28 19:56:23 +00:00
Jesse Wilson
1b7a85d354 Remove Request.tags from our public API (#7114) 2022-02-28 09:10:52 -05:00
Yuri Schimke
39f99fb290 Call KMP (#7108) 2022-02-28 07:03:51 +00:00
Yuri Schimke
d65f6dbc09 Ignore legacy okttp versions (#7125) 2022-02-27 18:29:03 +00:00
renovate[bot]
64a9bb3cf4 Update dependency org.junit.platform:junit-platform-console to v1.8.2 (#7127)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 18:24:54 +00:00
renovate[bot]
e11cbd46f9 Update dependency com.google.android.gms:play-services-safetynet to v18 (#7128)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 18:24:20 +00:00
renovate[bot]
4a1c508866 Update dependency biz.aQute.bnd:biz.aQute.bnd.gradle to v6.2.0 (#7120)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 15:42:45 +00:00
renovate[bot]
4fb945cb84 Update dependency com.vanniktech:gradle-maven-publish-plugin to v0.19.0 (#7121)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 15:29:09 +00:00
Jesse Wilson
a62974de39 Remove DnsRecordCodec from our public API (#7113) 2022-02-27 10:23:43 -05:00
Jesse Wilson
bdc213f180 Remove japicmp (#7118)
This plugin served us very well for a long time. But the binary
compatibility plugin is better suited for our current situation.
2022-02-27 10:20:06 -05:00
renovate[bot]
0a9842749f Add renovate.json (#7119)
Co-authored-by: Renovate Bot <bot@renovateapp.com>
2022-02-27 15:18:30 +00:00
Jesse Wilson
ad1165b7b4 Link to our signing key from our GitHub page (#7117) 2022-02-27 10:19:17 +00:00
Yuri Schimke
b35c9b4748 Response KMP (#7107) 2022-02-26 20:36:24 +00:00
Jesse Wilson
3e16ec28fe Adopt Kotlin's binary compatibility validator (#7112) 2022-02-26 14:17:33 -05:00
Goooler
a168202fea Fix testconscrypt job build failure (#7111) 2022-02-26 16:20:17 +00:00
Goooler
a0b4c5819d Bump setup-java actions to v3 (#7110) 2022-02-26 12:55:11 +00:00
Yuri Schimke
7b3b487ddb Version Updates (#7109) 2022-02-26 12:12:46 +00:00
Jonathan Halterman
46cacc9598 Add Failsafe to the "works with okhttp" page. (#7106) 2022-02-24 00:49:15 -05:00
Yuri Schimke
af1c91de0f KMM Request and RequestBody (#7026) 2022-02-23 20:36:53 +00:00
Jesse Wilson
5c62ed796d Update Response.request docs to track behavior (#7102)
* Update Response.request docs to track behavior

Also change internal interceptors to explicitly retain the requests
that were forwarded down the chain.

* Add a test for request.response
2022-02-22 08:59:05 -05:00
Goooler
471ab22e6f Merge duplicated wrapper-validation actions (#7103) 2022-02-22 07:01:36 +00:00
Yuri Schimke
4df75dad1a Okio Path api and examples (#7025) 2022-02-21 19:52:48 +00:00
Jesse Wilson
489787cd02 Set the upstream when deploying (#7101) 2022-02-21 14:23:00 -05:00
Jesse Wilson
c160080430 Prepare for release 5.0.0-alpha.5. parent-5.0.0-alpha.5 2022-02-21 09:47:49 -05:00
Jesse Wilson
8a08fb2652 Don't leak a connection that's canceled before it connects (#7099)
We had a bug where calling ConnectPlan.cancel() before ConnectPlan.connectTcp()
would drop the cancel. This is because the rawSocket wasn't created yet to
cancel.

Also document fast fallback on our documentation site.
2022-02-20 22:33:59 -05:00
Yuri Schimke
3530e56c4f Native image tests (#7098) 2022-02-20 14:25:51 -05:00
Jesse Wilson
737f00683b Stop tracking failures in RoutePlanner (#7097)
This model doesn't work now that we're pulling routes concurrently.
Instead rely on the exchange and connection to track failures.
2022-02-20 13:36:53 -05:00