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.
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.
- define @get:JvmName(...) for the following vals in constructor instead of passing builder: Builder.
- url: HttpUrl
- method: String
- headers: Headers
- body: RequestBody?
- add @Deprecated(...) to the following functions.
- fun url(): HttpUrl
- fun method(): String
- fun headers(): Headers
- fun body(): RequestBody?
- fun cacheControl(): CacheControl
- clean up code where ()(Parentheses) is unnecessarily used.
* 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
* 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
Some OkHttp behavior was only tested via this API, so this PR includes a bunch
of test migration. The test migration is as mechanical as possible, so we aren't
really using idiomatic APIs yet in these tests.
The `okhttp-urlconnection` survives for the JavaNetCookieJar and the
JavaNetAuthenticator. We can't remove these any time soon unfortunately.
The most awkward part of this is the changes to the way MockResponse
handled chunked encoding. It used to consider trailers a part of its
chunked response; now it does not.