Jesse Wilson
7292e54a63
Update the changelog for OkHttp 4.0.1
2019-07-10 11:40:44 -04:00
Yuri Schimke
bdd6c3944f
Testing with JDK 12 and latest 11.0.3 ( #5212 )
...
JDK 12 and be more specific about when we expect failures, e.g. 11.0.3 has fixes we should take into account.
2019-07-02 07:21:58 +01:00
Jesse Wilson
911c5bf5b2
Prepare for release 4.0.0.
2019-06-26 19:30:33 -07: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
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
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
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
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
6b30649e6e
Deprecate SAM conversion methods
2019-06-01 18:15:36 -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
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
0bca781fc3
New releasing guide.
...
Also make readmes offer artifacts with Gradle syntax
2019-05-25 21:26:22 -04:00
Jesse Wilson
8bb58332db
Extension Functions toRequestBody(), toResponseBody()
2019-05-25 14:02:55 -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
Jesse Wilson
030dbeae26
Delete unwanted whitespace.
...
I think the convert-to-Kotlin feature adds these
2019-05-22 21:12:55 -04:00
monkey-mas
fa9118949e
Use idiomatic Kotlin in Request.kt ( #5092 )
...
- 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.
2019-05-22 15:55:00 -04:00
Jake Wharton
8d9b408b57
Kotlin improvements
...
Around string index/substring/contains and collection contains mostly.
2019-05-20 17:13:24 -04:00
Yuri Schimke
f468cfc7b2
Avoiding direct java.lang usage ( #5065 )
...
* i
* i
* i
2019-05-18 06:44:20 -04:00
Jesse Wilson
53e0f9e7fb
Adopt idiomatic Kotlin in Headers
2019-05-16 08:32:31 -04:00
Jesse Wilson
b46f891a52
Convert HttpHeaders to Kotlin ( #5016 )
...
* Rename HttpHeaders.java to .kt
* Convert HttpHeaders to Kotlin
2019-05-06 20:50:19 -04:00
Yuri Schimke
9f5a96fe7c
Fix merge conflicts after spotless applied ( #4933 )
2019-04-12 21:54:08 +01:00
Yuri Schimke
b89e9ed5c4
Fix kotlin source compatibility with logger ( #4927 )
...
* Document broken kotlin source
* Fix existing code
2019-04-12 16:18:34 -04:00
Yuri Schimke
f3949c23bc
Spotless code formatter
2019-04-10 22:44:58 +01:00
Yuri Schimke
9e12bc4d60
Improve PlatformRule autodetection ( #4920 )
...
Run more platforms in circleci.
Auto detect platform in IDE.
Surface more platform assumptions in tests.
2019-04-10 19:31:35 +01:00
Jesse Wilson
11805c14a4
Put apply plugin at the top of the build
2019-04-07 16:55:52 -04:00
Jesse Wilson
2e947a2202
Cover more of the OkHttp API for source compatibility
2019-04-06 20:58:08 -04:00
Jesse Wilson
18f2b5e6e6
Fix source compatibility for some Kotlin callsites. ( #4887 )
...
We had a problem where boolean vals needed to be reverted back to
boolean funs. I'd like to go back to vals later, but supporting existing
source patterns is more important.
We also had a problem where single abstract method types (SAM types)
could be supplied as lambas when calling into Java but not when calling
into Kotlin.
I found these by pointing KotlinSourceCompatibilityTest at the OkHttp
Get there like this:
git co 7eb897ab2e223632b3316bf46a15d37307a3d3b6^
git co 7eb897ab2e okhttp/build.gradle
git co 7eb897ab2e build.gradle
2019-04-06 07:07:11 +01: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
Jake Wharton
0e9a5c8054
Make error-prone validate missing override annotations
2019-03-31 13:04:22 -04:00
Yuri Schimke
02914fbba1
Kotlin version of logging-interceptor ( #4820 )
2019-03-30 22:22:28 +00: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
Galder Zamarreño
ee011b71cf
More flexible cipherSuite matching #4685
...
* Match any cipher suites starting with TLS_
2019-03-06 09:07:22 +01:00
Jesse Wilson
38eb03457c
Don't log duplex request bodies
...
We may want to support these eventually but for now this is
unhelpful because they won't terminate.
2019-02-26 22:06:31 -05:00
Jesse Wilson
aac6c8da07
Introduce EventListener.requestFailed, responseFailed events
...
These replace requestBodyEnd() / responseBodyEnd() in some failure scenarios.
They may also be issued in cases where no event was published previously.
2019-02-23 18:39:11 -05:00
Yuri Schimke
50df11c471
Build with 3 JDK targets ( #4568 )
...
* Build with 3 targets
* Update maven
* remove jdk 12 ea
* Try without errorprone temporarily
* Still set 1.8
* javadoc tolerance
* Profiles for 10 + 11
* More tolerant
* JDK 11 test skipping
* Cleanup imports
* Link to github issues
* Support JDK 12 building
2019-02-09 07:32:49 -05: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
0dc50f1112
Run IntelliJ inspections on the codebase
...
Some nullability warnings, some diamond operators, adopting Objects.equals(),
and some dead code elimination.
2019-01-01 12:41:06 -05:00