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

86 Commits

Author SHA1 Message Date
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
Yuri Schimke
67f77be6b0 Fix for insecureHost on Android (#6063) 2020-05-18 20:23:00 +01:00
Jesse Wilson
ef7c5f358e Prepare for release 4.7.0. 2020-05-17 13:52:53 -04: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
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
Yuri Schimke
2d21be1184 Custom trust example & API for certificate decoding (#6032) 2020-05-09 14:40:15 +01: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
Jesse Wilson
44124ba2a3 Prepare for release 4.4.0. 2020-02-17 17:51:22 -05:00
Yuri Schimke
c6ef70148b Bouncy Castle Provider working with HTTP/2 on JDK 8 (#5751) 2020-01-29 00:19:32 -06:00
Yuri Schimke
97aa9f5425 Fix for BouncyCastle keyManager test (#5747) 2020-01-22 15:53:58 -06:00
Jesse Wilson
36a408b6d6 Merge pull request #5736 from square/jwilson.0119.mpp
Switch to Gradle's Maven Publishing Plugin
2020-01-20 22:50:30 -05:00
Yuri Schimke
005c39b592 Fixes for bouncycastle tests 2020-01-20 22:47:13 +00: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
9316a4fbcc Merge pull request #5734 from yschimke/handle_weird_cert_names
Handle conscrypt cert names
2020-01-19 14:35:14 -05:00
Yuri Schimke
acf11df496 Handle conscrypt cert names 2020-01-19 19:04:01 +00:00
Yuri Schimke
a68b83756b Handle Conscrypt decode behaviour (#5733)
* Handle Conscrypt decode behaviour

* Cleanup
2020-01-19 13:58:35 -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
Yuri Schimke
604e2705e7 Add bouncy castle platform for tests (#5695)
* Add basic bouncy castle test

* Remove other tests

* Activate platform for TLS tests
2020-01-11 10:29:17 -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
Jesse Wilson
582f8ef2f7 Prepare for release 4.2.0. 2019-09-10 13:04:12 -04:00
Jesse Wilson
93c5bcc6cb Make it easier to decode PEM files
I'm starting with the thing I want first; reusing a HeldCertificate
across VM invocations.

Later we might want to create entire HandshakeCertificates objects
by stringing together many certificates from a single file.
2019-09-07 15:58:47 -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
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
Yuri Schimke
321791908a Allow nullable on Util.close (#5224)
Enforce null check in java with any mutable nullable closable
2019-06-25 07:24:40 +01: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
108fef3f6a Improve OkHttp documentation.
Combine the marketing page (index.md) with the GitHub README.md.

Fix links pointing to 3.x documentation.

Use Markdown tables instead of HTML tables.
2019-06-20 23:39:27 -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
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
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
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
Jesse Wilson
0bca781fc3 New releasing guide.
Also make readmes offer artifacts with Gradle syntax
2019-05-25 21:26:22 -04:00
Tang HuaiZhe
376b9a4e59 Replace !isEmpty with isNotEmpty 2019-05-25 12:00:05 +08:00
Jake Wharton
f7b11cacba Merge UtilKt and part of InternalKt into Util 2019-05-23 11:14:31 -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
Jake Wharton
f2187bb6e3 Smattering of Kotlin part 2 (#5087)
* Migrate eventListenerFactory to extension function

* Inline platformTrustManager

* Migrate delimiterOffset to extension functions

Also overhaul these and other string-manipulating functions to have default arguments for start/end indices.

* Migrate hostHeader and toHeaders to extension functions
2019-05-21 21:51:18 -04:00
Jake Wharton
42a41f3857 Smattering of Kotlin stuff (#5083)
* Migrate sameConnection to extension function

* Migrate bomAwareCharset to extension function

* Migrate verifyAsIpAddress to extension function

* Migrate indexOfControlOrNonAscii to extension function

* Migrate skip(Leading/Trailing)AsciiWhitespace and trimSubstring to extension functions

* Migrate toHeaderBlock to extension function
2019-05-20 23:17:37 -04:00
Jake Wharton
28d517a934 Remove nullability of receiver for closeQuietly extensions 2019-05-20 22:02:21 -04:00
Jake Wharton
450750c031 Eliminate Util object in favor of top-level functions 2019-05-20 18:13:30 -04:00
TangHuaiZhe
b3027a52ed Replace Math.min() with minOf (#5071)
* Replace Math.min() with minOf

* Fix
2019-05-20 11:47:10 -04:00
Jesse Wilson
6d872df83b Promote some Util functions to be extensions 2019-05-15 20:35:07 -04:00
Yuri Schimke
076593222d Remove package-info.java 2019-05-12 10:10:38 +01:00