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

56 Commits

Author SHA1 Message Date
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
Jesse Wilson
7f800e6106 Convert Hpack to Kotlin (#4987)
* Rename Hpack.java to .kt

* Convert Hpack to Kotlin
2019-04-28 12:42:14 -05:00
Jesse Wilson
11805c14a4 Put apply plugin at the top of the build 2019-04-07 16:55:52 -04:00
Jesse Wilson
6ee3c89dab Convert okhttp-tls classes to Kotlin (#4895)
* Rename HandshakeCertificates.java to .kt

* Convert okhttp-tls classes to Kotlin
2019-04-07 10:48:57 -04:00
Yuri Schimke
1f93359f15 Run CircleCI with multiple platforms (#4864)
Run in CircleCI.
Also conditionally disables tests that show issues with Conscrypt/OkHttp (client auth etc).
2019-04-03 15:45:05 +01:00
Zac Sweers
b042f1e499 Add Module.md files for different artifacts with module and package info (#4844)
* Add Module.md files for different artifacts with module and package info

This is what dokka uses to document packages and modules. Deleted the `package-info.kt` file as it doesn't do anything on its own, but can restore if it's still wanted

* Add Module.md for mockwebserver

* Only specify module if it exists

A bunch of samples don't have modules or readmes

* Remove package descriptors
2019-04-02 07:27:49 -04:00
Jesse Wilson
b6573d5558 Hook up japicmp for all stable artifacts
This excludes okhttp-sse and okhttp-dnsoverhttps
2019-03-18 01:03:52 -06:00
Jesse Wilson
c53f8db73d Configure gradle artifact uploads 2019-03-17 09:13:01 -04:00
Jesse Wilson
dc1e870d24 Basic Gradle support 2019-03-17 00:16:26 -04:00
Jesse Wilson
dedc6ecd5b Use more AssertJ features 2019-03-14 17:57:42 -04:00
Jesse Wilson
695b46cb2e [maven-release-plugin] prepare for next development iteration 2019-03-13 23:42:40 -04:00
Jesse Wilson
44d51d0ceb [maven-release-plugin] prepare release parent-3.14.0 2019-03-13 23:42:33 -04:00
Benoît Quenaudon
6c4855a7c7 Use AssertJ in tests (#4713) 2019-03-13 21:07:33 -04:00
Jesse Wilson
0a59e68b16 [maven-release-plugin] prepare for next development iteration 2019-02-05 12:15:46 -05:00
Jesse Wilson
d28d2cec21 [maven-release-plugin] prepare release parent-3.13.1 2019-02-05 12:15:39 -05:00
Jesse Wilson
5ecd590c8c [maven-release-plugin] prepare for next development iteration 2019-02-04 23:32:52 -05:00
Jesse Wilson
d55661544b [maven-release-plugin] prepare release parent-3.13.0 2019-02-04 23:32:45 -05:00
Jesse Wilson
778e0334a4 Use lambdas where appropriate 2019-01-11 22:31:36 -05:00
Jesse Wilson
bf8e653c3a Get the latest versions of things.
I used 'mvn versions:use-latest-versions' and also just a bunch of manual
fixing.
2018-12-28 15:53:46 -05:00
Jesse Wilson
69905ad19f Merge pull request #4444 from square/jwilson.1212.dont_bc
Don't rely on BouncyCastle algorithms for certificate building.
2018-12-18 12:46:06 -05:00
Jesse Wilson
e8b752a7a9 Don't rely on BouncyCastle algorithms for certificate building.
We want the system default crypto provider to do it.

Potential fix for https://github.com/square/okhttp/issues/4443
2018-12-12 21:48:30 -05:00
Jesse Wilson
fa24d3dd74 Exclude 'internal' packages in generated Javadocs 2018-11-18 09:44:13 -05:00
Jesse Wilson
c273b3be38 [maven-release-plugin] prepare for next development iteration 2018-11-16 23:44:19 -05:00
Jesse Wilson
7f63a35ab1 [maven-release-plugin] prepare release parent-3.12.0 2018-11-16 23:44:12 -05:00
Jesse Wilson
d062472253 Specify "EC" to generate eliptic curve keys, not ECDSA
They're the same algorithm, but on Android API 27 only "EC" works;
"ECDSA" throws a NoSuchAlgorithmException.

Closes https://github.com/square/okhttp/issues/4175
2018-11-15 07:26:30 -05:00
Jesse Wilson
2c95b0437b Don't specify a crypto provider in HeldCertificate.
Closes: https://github.com/square/okhttp/issues/4183
2018-11-06 21:48:46 +11:00
Yuri Schimke
ceb42f1322 EverythingIsNonNull annotation (#4286)
Adds an annotation EverythingIsNonNull, and fixes some nullability on public API.
2018-09-30 09:33:42 +01:00
Jesse Wilson
ce66fd5d7d Download link in TLS documentation 2018-07-13 08:14:28 -04:00
Jesse Wilson
e4444ed1b7 TLS documentation 2018-07-13 08:09:31 -04:00
Jesse Wilson
7ef5f55d38 [maven-release-plugin] prepare for next development iteration 2018-07-12 23:41:09 -04:00
Jesse Wilson
95ae0cf421 [maven-release-plugin] prepare release parent-3.11.0 2018-07-12 23:41:00 -04:00