Amir Livneh
686df55eed
Fix EventListener documentation
2019-10-18 12:52:00 -04:00
Jesse Wilson
59f7ebc2f9
Merge pull request #5171 from square/jwilson.0605.docs_in_git
...
Move docs from GitHub wiki into the main repo.
2019-06-07 09:34:35 -04:00
Jesse Wilson
2cbd0258e4
Move docs from GitHub wiki into the main repo.
...
This way they're versioned with the code, and documentation changes
can happen atomically with code changes.
2019-06-06 00:52:43 -04:00
Jesse Wilson
e208db0f6e
Merge pull request #5168 from tasomaniac/patch-2
...
Typo fix
2019-06-04 01:04:41 -04:00
Said Tahsin Dane
d73de5dcad
Update UPGRADING_TO_OKHTTP_4.md
2019-06-04 07:03:17 +02:00
Jesse Wilson
82335f9980
Prepare next development version.
2019-06-04 00:28:58 -04:00
Jesse Wilson
148938a178
Prepare for release 4.0.0-RC1.
parent-4.0.0-RC1
2019-06-04 00:28:50 -04:00
Jesse Wilson
20cd3a0893
Increase severity of bridge methods to ERROR. ( #5160 )
...
Delete the KotlinSourceCompatibilityTest. It has served its purpose.
2019-06-03 06:38:19 +01:00
Jesse Wilson
e6002bd9c4
Merge pull request #5159 from square/jwilson.0602.upgrade_guide
...
OkHttp 4 upgrade guide
2019-06-02 21:12:10 -04:00
Jesse Wilson
b2460b7bff
OkHttp 4 upgrade guide
2019-06-02 18:25:19 -04:00
Jesse Wilson
9761b297a0
Merge pull request #5158 from square/jwilson.0602.sam_and_max
...
Remove most of the SAM bridges
2019-06-02 11:55:03 -04:00
Jesse Wilson
6b537e2585
Remove most of the SAM bridges
...
The ReplaceWith() on these doesn't work well.
For interceptors I expect the need to be common enough that I'm making these
new APIs that we'll keep going forward. This is for both creating interceptors
directly and as arguments to addInterceptor() and addNetworkInterceptor().
2019-06-02 11:28:53 -04:00
Jesse Wilson
59e5d76954
Merge pull request #5156 from square/jwilson.0601.track_okhttp_314
...
Fix Kotlin idioms in MockResponse. Headers and Trailers should be vals.
2019-06-02 09:44:24 -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
e382731975
Fix Kotlin idioms in MockResponse. Headers and Trailers should be vals.
...
Also track OkHttp 3.14.x in KotlinSourceCompatibilityTest. This shouldn't
have been updated to use new APIs.
2019-06-01 22:47:12 -04:00
Jesse Wilson
fd4f9d39c3
Merge pull request #5154 from square/idiomatic-kotlin-mockresponse-use-apply
...
Use apply {} to adopt idiomatic Kotlin in Dispatcher and QueueDispatcher
2019-06-01 20:31:55 -04:00
Jesse Wilson
3570249736
Merge pull request #5155 from square/jwilson.0601.sam_methods
...
Deprecate SAM conversion methods
2019-06-01 20:01:59 -04:00
Jesse Wilson
6b30649e6e
Deprecate SAM conversion methods
2019-06-01 18:15:36 -04:00
Masaru Nomura
8369f65063
Use apply {} to adopt idiomatic Kotlin in Dispatcher and QueueDispatcher
...
Follow up of https://github.com/square/okhttp/pull/5144#issuecomment-497954889
2019-06-01 18:06:40 -04:00
Jesse Wilson
f050a7c7e9
Merge pull request #5152 from square/jwilson.0601.reqbo
...
Adopt idiomatic Kotlin in RecordedRequest
2019-06-01 16:27:27 -04:00
Jesse Wilson
a99952054b
Merge pull request #5153 from square/jwilson.0601.idiomatic_mws
...
Adopt idiomatic Kotlin in MockWebServer
2019-06-01 16:25:01 -04:00
Jesse Wilson
1a1d0b7df0
Adopt idiomatic Kotlin in RecordedRequest
...
Not much to change.
2019-06-01 14:50:32 -04:00
Jesse Wilson
080a0a38ea
Adopt idiomatic Kotlin in MockWebServer
2019-06-01 14:48:07 -04:00
Jesse Wilson
327763a642
Merge pull request #5144 from square/idiomatic-kotlin-mockresponse
...
Idiomatic Kotlin in MockResponse.kt
2019-06-01 11:42:39 -04:00
TangHuaiZhe
11dc8f447d
Code clean up ( #5149 )
...
* Code clean up
* Revert modify in takeRequest
2019-05-31 22:07:59 -04:00
Jesse Wilson
68ea905ba0
Merge pull request #5128 from square/jwilson.0525.logging
...
Adopt idiomatic Kotlin in HttpLoggingInterceptor
2019-05-31 00:00:18 -04:00
Jesse Wilson
053b6f1544
Adopt idiomatic Kotlin in HttpLoggingInterceptor
2019-05-30 19:29:35 -04:00
Masaru Nomura
1294e11fc5
Idiomatic Kotlin in MockResponse.kt
2019-05-30 02:11:30 -04:00
Jesse Wilson
4258c913b3
Merge pull request #5142 from square/jakew/locking/2019-05-29
...
Replace 'as Object' wait/notify with extensions
2019-05-30 00:22:56 -04:00
Jake Wharton
6b57e7526f
Replace 'as Object' wait/notify with extensions
2019-05-29 22:19:32 -04:00
Jesse Wilson
0bf060b08a
Merge pull request #5139 from square/jakew/headers/2019-05-28
...
Update Headers factories to be idiomatic Kotlin
2019-05-28 10:13:04 -04:00
Jake Wharton
0827fc62da
Update Headers factories to be idiomatic Kotlin
2019-05-28 09:27:51 -04:00
Jake Wharton
1e145851d9
Merge pull request #5113 from square/jakew/request-to-string/2019-05-24
...
Beef up Request's toString
2019-05-28 08:35:48 -04:00
Jake Wharton
a0a3ef543c
Beef up Request's toString
...
Previously it unconditionally showed tags even if empty and would not show headers.
2019-05-28 08:22:39 -04:00
Jesse Wilson
31ec0c74cc
Merge pull request #5135 from yschimke/silent_cleanup
...
Silent Code Cleanup
2019-05-28 08:01:17 -04:00
Yuri Schimke
9cf7c684d7
Silent Code Cleanup
2019-05-28 07:05:22 +01:00
Jesse Wilson
96eb1111eb
Implement date formatting and parsing as extensions ( #5134 )
2019-05-28 06:49:53 +01:00
Jesse Wilson
0b12ed2bb0
Don't use data classes in public APIs ( #5133 )
...
Doing so makes it difficult to revise these APIs later
2019-05-28 06:45:43 +01:00
Amir Jalal
c9109a6f8e
Update README.md ( #5072 )
...
* Update README.md
Similar if-else but in Switch-case
* Update README.md
Indent levels fixed
2019-05-27 20:36:55 -04:00
monkey-mas
48ff212b8b
Idiomatic Kotlin in HeldCertificate.kt ( #5127 )
...
* Idiomatic Kotlin in HeldCertificate.kt
- define `@get:JvmName(...)` for the following vals in constructor.
- `keyPair: KeyPair`
- `certificate: X509Certificate`
- add `@Deprecated(...)` to the following functions.
- `fun certificate(): X509Certificate`
- `fun keyPair(): KeyPair`
- clean up code where `()`(parentheses) is unnecessarily used.
* Use check(...) for validity check of PRSAPriveteKey in HeldCertificate#privateKeyPkcs1Pem()
require(...) throws IllegalArgumentException but this exception doesn't make sense when we have no arguments.
feedback: https://github.com/square/okhttp/pull/5127/files#r287577733
2019-05-27 20:35:54 -04:00
Jesse Wilson
5f6e81935a
Merge pull request #5124 from square/idiomatic-kotlin-HandshakeCertificates
...
Idiomatic Kotlin in HandshakeCertificates
2019-05-27 20:34:43 -04: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
bdd5ee790a
Idiomatic Kotlin in HandshakeCertificates
...
- define `@get:JvmName(...)` for the following vals in constructor.
- `keyManager: X509KeyManager`
- `trustManager: X509TrustManager`
- add `@Deprecated(...)` to the following functions.
- `fun keyManager(): X509KeyManager`
- `fun trustManager(): X509TrustManager`
2019-05-26 16:43:42 -04: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
Yuri Schimke
568c6813b1
Update SECURITY.md ( #5131 )
...
* Update SECURITY.md
* Update SECURITY.md
* Update SECURITY.md
2019-05-26 12:12:56 -04:00
Yuri Schimke
59c100248f
Kotlin Cleanup check ( #5130 )
2019-05-26 15:02:08 +01:00
Jesse Wilson
c722cdf6c2
Merge pull request #5129 from square/jwilson.0525.releasing_script
...
New releasing guide.
2019-05-26 09:21:16 -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
a26d8faa2d
Prepare next development version.
2019-05-25 20:54:11 -04:00