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
Jesse Wilson
ef7c5f358e
Prepare for release 4.7.0.
2020-05-17 13:52:53 -04:00
Yuri Schimke
6ec4e340f8
Fix flaky LoggingEventListenerTest
2020-05-08 17:56:47 +01:00
Yuri Schimke
f631abab4d
Add Cache events to LoggingEventListener ( #6020 )
2020-05-07 06:54:17 +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
Jesse Wilson
08e23fcd02
Add a canceled event to EventListener
2020-02-16 18:20:49 -05:00
Liam Newman
78016071b3
Add a windows executor to the build ( #5769 )
...
* Add a windows executor to the build
* Disable failing tests on windows
* Workaround find limitations
2020-02-05 21:09:37 -05: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
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
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
a2c06073b1
Un-deprecate some setters for chaining from Java
...
Closes: https://github.com/square/okhttp/issues/5199
2019-12-31 15:23:14 -05:00
Dmitry Timofeev
f7828cf23f
Fix the broken link: ( #5530 )
...
* Fix the broken link:
There is no longer a markdown doc file on interceptors,
but the article is available on the project website.
* Update README.md
2019-10-05 22:00:21 -04:00
Jesse Wilson
20fcc7d330
Update changelog for 4.2.1.
2019-10-02 08:26:28 -04:00
Yuri Schimke
16173e2af9
Make Platform.log exception parameter optional ( #5482 )
...
Make Platform.log exception parameters optional, and reorders to allow level defaulting to INFO.
2019-09-29 16:59:58 +10:00
David Robertson
1e3762ecb7
HttpLoggingInterceptor: respect RequestBody.isOneShot() ( #5420 )
...
* HttpLoggingInterceptor: don't attempt to log the contents of request bodies if isOneShot() returns true.
* Add test to ensure one-shot requests do not have the body contents logged
2019-09-23 11:19:03 +01:00
Jesse Wilson
582f8ef2f7
Prepare for release 4.2.0.
2019-09-10 13:04:12 -04:00
Jesse Wilson
1b97ce67e9
Update the changelog for 4.1.1.
2019-09-05 00:30:48 -04:00
Jake Wharton
987d2848fd
Ensure overridden content length/type headers are logged
2019-08-17 10:18:25 -04:00
Jesse Wilson
4739b27806
Prepare for release 4.1.0.
2019-08-12 13:00:00 -04:00
Yuri Schimke
2a1f328d58
Add proxy event logging ( #5300 )
2019-07-25 05:42:32 +01:00
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