1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-29 17:41:17 +03:00

128 Commits

Author SHA1 Message Date
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
b4d66af1da Publish OSGi metadata for OkHttp 2020-10-06 22:40:28 -04:00
cbeaf8f955 Prepare for release 4.9.0. 2020-09-11 17:08:20 -04:00
96a2118dd4 Release OkHttp 4.8.1. 2020-08-06 10:07:13 -04:00
a70e992c3f Prepare for release 4.8.0. 2020-07-11 14:01:06 -04:00
4c595553fb Prepare for release 4.7.2. 2020-05-20 09:06:47 -04:00
186ec88aff Prepare for release 4.7.1. 2020-05-18 17:46:48 -04:00
ef7c5f358e Prepare for release 4.7.0. 2020-05-17 13:52:53 -04:00
0deadd5611 Prepare for release 4.6.0. 2020-04-29 00:52:51 -04:00
86b7ba5f2a Enable BouncyCastle on Android and add some testing (#5936) 2020-04-11 17:35:27 +01:00
19771365f2 Rename to src/main/kotlin (#5938)
Follows the default path logic for kotlin classes.
2020-04-11 17:15:25 +01:00
ca0c8d6a1a Prepare for release 4.5.0. 2020-04-06 10:54:10 -04:00
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
44124ba2a3 Prepare for release 4.4.0. 2020-02-17 17:51:22 -05:00
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
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
fd0919cfa4 OkHttp 4.3.1 is released 2020-01-07 13:44:16 -05:00
b63debd827 Prepare for release 4.3.0. 2019-12-31 16:39:08 -05:00
20fcc7d330 Update changelog for 4.2.1. 2019-10-02 08:26:28 -04:00
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
582f8ef2f7 Prepare for release 4.2.0. 2019-09-10 13:04:12 -04:00
1b97ce67e9 Update the changelog for 4.1.1. 2019-09-05 00:30:48 -04:00
4739b27806 Prepare for release 4.1.0. 2019-08-12 13:00:00 -04:00
6903b89e0b Cleanup of error prone and warnings (#5268)
* Comment some warnings

* Wrap

* Disable warnings
2019-07-15 21:11:35 -04:00
7292e54a63 Update the changelog for OkHttp 4.0.1 2019-07-10 11:40:44 -04:00
911c5bf5b2 Prepare for release 4.0.0. 2019-06-26 19:30:33 -07:00
50e4c422d2 Move the API docs from /okhttp/api to /okhttp/4.x 2019-06-21 23:23:46 -04:00
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
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
12eb1c10c8 Merge pull request #5123 from square/idiomatic-kotlin-dnsoverhttps
Idiomatic Kotlin in DnsOverHttps.kt
2019-05-27 20:33:53 -04:00
53ba4dd9ef Replace MediaType.get(string) with string.toMediaType() (#5132) 2019-05-27 06:38:35 +01:00
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
0bca781fc3 New releasing guide.
Also make readmes offer artifacts with Gradle syntax
2019-05-25 21:26:22 -04:00
8bb58332db Extension Functions toRequestBody(), toResponseBody() 2019-05-25 14:02:55 -04:00
9c20f17270 Use vals in OkHttpClient 2019-05-25 10:34:25 -04:00
8e96075fcd Merge pull request #5116 from TangHuaiZhe/dev
Replace !isEmpty with isNotEmpty
2019-05-25 09:49:25 -04:00
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
376b9a4e59 Replace !isEmpty with isNotEmpty 2019-05-25 12:00:05 +08:00
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
030dbeae26 Delete unwanted whitespace.
I think the convert-to-Kotlin feature adds these
2019-05-22 21:12:55 -04:00
e67ec3c51e Adopt HttpUrl's new Kotlin API 2019-05-20 21:01:04 -04:00
0b89e0ee59 Use apply {} in builders 2019-05-20 19:55:47 -04:00
2c59337e31 Use check/require instead of if/throw 2019-05-20 19:02:41 -04:00
2e0dfa29d0 Don't use @JvmStatic for internal calls 2019-05-20 16:00:40 -04:00
dcf5c8ceb6 Fix/Simplify regex usage (#5059)
* Fix/Simplify regex usage

* Cleanup
2019-05-18 06:33:34 -04:00
f3949c23bc Spotless code formatter 2019-04-10 22:44:58 +01:00
58afc0bc56 Delete unused imports 2019-04-06 11:54:42 +08:00
e458bd0a90 Configure Dokka 2019-03-30 17:28:37 -04:00
e2cfcb35ea Okio upgrade post kotlin (#4814)
Okio 2.2.2 upgrade and adopt kotlin friendly API
2019-03-29 21:54:10 +00:00
77fcbf3d99 Convert CertificatePinner to Kotlin (#4801) 2019-03-27 13:28:18 -05:00