Yuri Schimke
076e976c10
Picocli ( #5207 )
...
Switch from airline to picocli, which is more graal compatible and has nicer default output.
2019-07-19 15:15:05 +01: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
53ba4dd9ef
Replace MediaType.get(string) with string.toMediaType() ( #5132 )
2019-05-27 06:38:35 +01:00
Jesse Wilson
8bb58332db
Extension Functions toRequestBody(), toResponseBody()
2019-05-25 14:02:55 -04:00
Jesse Wilson
9c20f17270
Use vals in OkHttpClient
2019-05-25 10:34:25 -04:00
Masaru Nomura
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
Jake Wharton
450750c031
Eliminate Util object in favor of top-level functions
2019-05-20 18:13:30 -04:00
Jesse Wilson
59233b4ee2
Address some code style feedback in Kotlin conversions
2019-05-20 11:49:24 -04:00
Yuri Schimke
dcf5c8ceb6
Fix/Simplify regex usage ( #5059 )
...
* Fix/Simplify regex usage
* Cleanup
2019-05-18 06:33:34 -04:00
Jesse Wilson
53e0f9e7fb
Adopt idiomatic Kotlin in Headers
2019-05-16 08:32:31 -04:00
Yuri Schimke
a49b636e34
Convert okcurl to Kotlin ( #5033 )
...
* Rename File
* Convert Main to Kotlin
* Review comments
2019-05-11 18:00:18 +01: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
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
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
5f4a2642c0
Use automatic-resource-management blocks.
2019-01-01 21:50:44 -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
Amir Livneh
c6ded84d35
Add --call-timeout option to okcurl
2018-12-24 07:18:48 -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
Amir Livneh
ef34a41d09
Add a LoggingEventListener and use it in okcurl ( #4353 )
...
* Add LoggingEventListener and use it in okcurl
* Fix tests failing in IP6 environment
* Make less assumptions about test environment
* Disable retry in test to make test sequence more predictable
* Fix javadoc compilation
There seems to be inconsistency between javdoc parsing between 'mvn verify' and Travis CI. Before the change, 'mvn clean verify' passes but Travis CI fails due to missing import of okhttp3.OkHttpClient. Just adding the missing import, causes 'mvn verify' to fail die to unused import. Changing the line wrapping seems to appease 'mvn verify'.
* Address comments
* Remove unused imports
2018-11-13 21:58:22 -05: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
Jesse Wilson
b1bfe7130c
New okhttp-tls module
2018-07-09 12:00:28 -04:00
Jesse Wilson
e86eb0e48b
[maven-release-plugin] prepare for next development iteration
2018-02-24 13:33:57 -05:00
Jesse Wilson
c0739a4199
[maven-release-plugin] prepare release parent-3.10.0
2018-02-24 13:33:52 -05:00
Yuri Schimke
14215b8b3f
cleanup travis output ( #3853 )
2018-02-17 09:25:41 -05:00
Yuri Schimke
d27531afa9
Use manifest entry for java 9 module name ( #3743 )
...
* Use manifest entry for java 9 module name
* add group
* specific names
* Update pom.xml
* Update pom.xml
* Update pom.xml
* Update pom.xml
* Update pom.xml
* Update pom.xml
* Update pom.xml
* Update pom.xml
2018-02-04 03:02:20 -05:00
Yuri Schimke
9cb3af2a03
Build Provider through the Platform ( #3788 )
2018-01-28 17:04:42 +00:00
Jesse Wilson
2bb2dc4340
[maven-release-plugin] prepare for next development iteration
2017-11-18 14:38:02 -05:00
Jesse Wilson
23b6f7556d
[maven-release-plugin] prepare release parent-3.9.1
2017-11-18 14:37:50 -05:00
jwilson
51311219af
[maven-release-plugin] prepare for next development iteration
2017-09-04 17:00:21 -04:00
jwilson
51663fd08f
[maven-release-plugin] prepare release parent-3.9.0
2017-09-04 17:00:16 -04:00
jwilson
304d2c9630
[maven-release-plugin] prepare for next development iteration
2017-05-13 10:58:15 -04:00
jwilson
cb981daecf
[maven-release-plugin] prepare release parent-3.8.0
2017-05-13 10:58:04 -04:00
jwilson
6f8cdcca1d
[maven-release-plugin] prepare for next development iteration
2017-04-15 21:53:08 -04:00
jwilson
e56f561e93
[maven-release-plugin] prepare release parent-3.7.0
2017-04-15 21:53:02 -04:00
jwilson
9690110f81
[maven-release-plugin] prepare for next development iteration
2017-01-29 14:14:39 -05:00
jwilson
9dc1bbad24
[maven-release-plugin] prepare release parent-3.6.0
2017-01-29 14:14:33 -05:00
jwilson
29f69277ea
[maven-release-plugin] prepare for next development iteration
2016-12-01 12:53:49 -05:00
jwilson
366bc4752b
[maven-release-plugin] prepare release parent-3.5.0
2016-12-01 12:53:45 -05:00
jwilson
3d43a8dba8
Rename FramedConnection to Http2Connection.
...
Also rename HttpStream to HttpCodec. This is the interface implemented
for both HTTP/1.1 and HTTP/2. The HTTP/2 codec creates a stream when
it is used.
2016-07-09 18:09:19 -04:00