1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-23 06:42:24 +03:00
Commit Graph

85 Commits

Author SHA1 Message Date
Yuri Schimke
858939f025 DOH non experimental (#6452) 2020-11-29 10:07:20 -05:00
Yuri Schimke
083315a473 Launcher for quick tests (#6437) 2020-11-21 13:28:45 +00:00
Yuri Schimke
d1cf4944f2 Junit import fail (#6429)
* Missed some imports

* Missed some imports

* Missed some imports
2020-11-19 21:23:18 -05:00
Yuri Schimke
ff959f8fd5 Android Additional Tests (#6420) 2020-11-15 06:42:22 +00:00
Yuri Schimke
4036fa55b7 Update remaining junit4 tests (#6421) 2020-11-14 12:21:04 -05:00
Jesse Wilson
59ae0c138d Convert more tests to JUnit 5 (#6366) 2020-11-01 05:46:35 +00:00
Jesse Wilson
8438e360de Rename mockwebserverwrapper to mockwebserver-deprecated (#6328) 2020-10-18 08:55:43 -04:00
Jesse Wilson
3e331c1089 Rename okhttp3.mockwebserver to mockwebserver3 (#6327)
Also rename okhttp3.mockwebserverwrapper to okhttp3.mockwebserver

Directories are not renamed to minimize the git diff. That'll follow
in a separate commit.

Most users of the API are not impacted. The ones that are:
 - CallTest subclasses QueueDispatcher
 - DuplexTest uses duplex APIs
 - HttpOverHttp2Test subclasses QueueDispatcher

This is part 2 of the plan described here:
https://github.com/square/okhttp/pull/6326
2020-10-18 08:13:09 -04:00
Simon Wimmesberger
b4d66af1da Publish OSGi metadata for OkHttp 2020-10-06 22:40:28 -04:00
Jesse Wilson
cbeaf8f955 Prepare for release 4.9.0. 2020-09-11 17:08:20 -04:00
Jesse Wilson
96a2118dd4 Release OkHttp 4.8.1. 2020-08-06 10:07:13 -04:00
Jesse Wilson
a70e992c3f Prepare for release 4.8.0. 2020-07-11 14:01:06 -04:00
Jesse Wilson
4c595553fb Prepare for release 4.7.2. 2020-05-20 09:06:47 -04:00
Jesse Wilson
186ec88aff Prepare for release 4.7.1. 2020-05-18 17:46:48 -04:00
Jesse Wilson
ef7c5f358e Prepare for release 4.7.0. 2020-05-17 13:52:53 -04:00
Jesse Wilson
0deadd5611 Prepare for release 4.6.0. 2020-04-29 00:52:51 -04:00
Yuri Schimke
86b7ba5f2a Enable BouncyCastle on Android and add some testing (#5936) 2020-04-11 17:35:27 +01:00
Yuri Schimke
19771365f2 Rename to src/main/kotlin (#5938)
Follows the default path logic for kotlin classes.
2020-04-11 17:15:25 +01:00
Jesse Wilson
ca0c8d6a1a Prepare for release 4.5.0. 2020-04-06 10:54:10 -04:00
Yuri Schimke
46fcf4f42c Fix for infinite caching in DoH (#5918)
Hit the cache only initially, but avoid using stale cached data.
2020-04-02 12:58:26 +01:00
Jesse Wilson
44124ba2a3 Prepare for release 4.4.0. 2020-02-17 17:51:22 -05:00
Jesse Wilson
e6cefb7a4d Switch to Gradle's Maven Publishing Plugin
This removes a bunch of low-value stuff from the pom.xml files:

 - name
 - description
 - licence distribution ('repo')
 - developers clause
 - test dependencies

I don't think any of this will be missed, and it shrinks the pom.xml
file to the minimal set of useful stuff.

This also causes us to publish a gradle .module file. This is the
motivation for this change. It'll allow us to ship a Gradle platform,
which is a more capable than a Maven BOM.
2020-01-19 21:44:55 -05:00
Jesse Wilson
c1d50e371f Upgrade Okio and some build dependencies
The new ktlint sorts imports which makes this diff large.

The new japicmp ignores 'final' modifier changes in final classes.

We adopt the Google style for checkstyle.xml.

Okio readByteString() now uses segments more aggressively, so we
need to mitigate that to avoid tracking those segments in a test.
2020-01-11 22:24:12 -05:00
Jesse Wilson
fd0919cfa4 OkHttp 4.3.1 is released 2020-01-07 13:44:16 -05:00
Jesse Wilson
b63debd827 Prepare for release 4.3.0. 2019-12-31 16:39:08 -05:00
Jesse Wilson
20fcc7d330 Update changelog for 4.2.1. 2019-10-02 08:26:28 -04:00
Yuri Schimke
16173e2af9 Make Platform.log exception parameter optional (#5482)
Make Platform.log exception parameters optional, and reorders to allow level defaulting to INFO.
2019-09-29 16:59:58 +10:00
Jesse Wilson
582f8ef2f7 Prepare for release 4.2.0. 2019-09-10 13:04:12 -04:00
Jesse Wilson
1b97ce67e9 Update the changelog for 4.1.1. 2019-09-05 00:30:48 -04:00
Jesse Wilson
4739b27806 Prepare for release 4.1.0. 2019-08-12 13:00:00 -04:00
Yuri Schimke
6903b89e0b Cleanup of error prone and warnings (#5268)
* Comment some warnings

* Wrap

* Disable warnings
2019-07-15 21:11:35 -04:00
Jesse Wilson
7292e54a63 Update the changelog for OkHttp 4.0.1 2019-07-10 11:40:44 -04:00
Jesse Wilson
911c5bf5b2 Prepare for release 4.0.0. 2019-06-26 19:30:33 -07:00
Jesse Wilson
50e4c422d2 Move the API docs from /okhttp/api to /okhttp/4.x 2019-06-21 23:23:46 -04:00
Jesse Wilson
70cd67c75d Tweak the MkDocs build
Retain the 3.x docs by doing a dirty MkDocs build
Build more Dokka projects
2019-06-20 00:01:47 -04:00
Jesse Wilson
22a420b3a2 Remove the Kotlin migration bridges from DnsOverHttps (#5157)
We promise no API stability in this package.
2019-06-02 07:19:16 +01:00
Jesse Wilson
12eb1c10c8 Merge pull request #5123 from square/idiomatic-kotlin-dnsoverhttps
Idiomatic Kotlin in DnsOverHttps.kt
2019-05-27 20:33:53 -04:00
Jesse Wilson
53ba4dd9ef Replace MediaType.get(string) with string.toMediaType() (#5132) 2019-05-27 06:38:35 +01:00
Masaru Nomura
f0a580070e Idiomatic Kotlin in DnsOverHttps.kt
- define the following vals in constructor instead of passing `builder: Builder`.
  - `@get:JvmName(...)` val
    - `client: OkHttpClient`
    - `url: HttpUrl`
    - `includeIPv6: Boolean`
    - `post: Boolean`
    - `resolvePrivateAddresses: Boolean`
    - `resolvePublicAddresses: Boolean`
  - `private` val
    - `systemDns: Dns`
    - `bootstrapDnsHosts: List<InetAddress>?`

- add `@Deprecated(...)` to the following functions.
  - `fun client(): OkHttpClient`
  - `fun url(): HttpUrl`
  - `fun includeIPv6(): Boolean`
  - `fun post(): Boolean`
  - `fun resolvePrivateAddresses(): Boolean`
  - `fun resolvePublicAddresses(): Boolean`
2019-05-26 16:28:07 -04:00
Jesse Wilson
0bca781fc3 New releasing guide.
Also make readmes offer artifacts with Gradle syntax
2019-05-25 21:26:22 -04:00
Jesse Wilson
8bb58332db Extension Functions toRequestBody(), toResponseBody() 2019-05-25 14:02:55 -04:00
Jesse Wilson
9c20f17270 Use vals in OkHttpClient 2019-05-25 10:34:25 -04:00
Jesse Wilson
8e96075fcd Merge pull request #5116 from TangHuaiZhe/dev
Replace !isEmpty with isNotEmpty
2019-05-25 09:49:25 -04:00
Jesse Wilson
f87bb6d817 Reorder the members of OkHttpClient (#5114)
This isn't perfect but I think it's a bit more logical.
2019-05-25 06:50:37 +01:00
Tang HuaiZhe
376b9a4e59 Replace !isEmpty with isNotEmpty 2019-05-25 12:00:05 +08:00
Masaru Nomura
7ad4f970ba Idiomatic Kotlin for Response.kt
- define `@get:JvmName(...)` for the following vals in constructor instead of passing `builder: Builder`.
  - `request: Request`
  - `protocol: Protocol`
  - `message: String`
  - `code: Int`
  - `handshake: Handshake?`
  - `headers: Headers`
  - `body: ResponseBody?`
  - `networkResponse: Response?`
  - `cacheResponse: Response?`
  - `priorResponse: Response?`
  - `sentRequestAtMillis: Long`
  - `receivedResponseAtMillis: Long`
  - `exchange: Exchange?`

- add `@Deprecated(...)` to the following functions.
  - `fun request(): Request`
  - `fun protocol(): Protocol`
  - `fun message(): String`
  - `fun code(): Int`
  - `fun handshake(): Handshake?`
  - `fun headers(): Headers`
  - `fun body(): ResponseBody?`
  - `fun networkResponse(): Response?`
  - `fun cacheResponse(): Response?`
  - `fun priorResponse(): Response?`
  - `fun sentRequestAtMillis(): Long`
  - `fun receivedResponseAtMillis(): Long`
  - `fun cacheControl(): CacheControl`

- clean up code where `()`(parentheses) is unnecessarily used.
2019-05-24 16:16:29 -04:00
Jesse Wilson
030dbeae26 Delete unwanted whitespace.
I think the convert-to-Kotlin feature adds these
2019-05-22 21:12:55 -04:00
Jesse Wilson
e67ec3c51e Adopt HttpUrl's new Kotlin API 2019-05-20 21:01:04 -04:00
Jesse Wilson
0b89e0ee59 Use apply {} in builders 2019-05-20 19:55:47 -04:00
Jesse Wilson
2c59337e31 Use check/require instead of if/throw 2019-05-20 19:02:41 -04:00