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

55 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
Jesse Wilson
50e4c422d2 Move the API docs from /okhttp/api to /okhttp/4.x 2019-06-21 23:23:46 -04:00
Jesse Wilson
65a47ed458 Merge pull request #5189 from square/jwilson.0614.uncaught_exceptions
Make OkHttpClientTestRule more powerful.
2019-06-21 00:55:19 -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
ad5d6b8a7b Make OkHttpClientTestRule more powerful.
I'm hoping to follow this up with a change so that this rule can also do the
uncaught exception handling that we're currently doing elsewhere.

See https://github.com/square/okhttp/issues/4894
2019-06-15 22:08:18 -04:00
Jesse Wilson
53ba4dd9ef Replace MediaType.get(string) with string.toMediaType() (#5132) 2019-05-27 06:38:35 +01:00
Jesse Wilson
0bca781fc3 New releasing guide.
Also make readmes offer artifacts with Gradle syntax
2019-05-25 21:26:22 -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
3552e695c4 Get rid of Internal.kt (#5097)
It's no longer necessary
2019-05-23 05:50:45 +01: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
450750c031 Eliminate Util object in favor of top-level functions 2019-05-20 18:13:30 -04:00
Jesse Wilson
110ad6db0a Adopt idiomatic Kotlin in CipherSuite, Cookie, and MediaType 2019-05-13 22:19:43 -04:00
Jesse Wilson
1fe6c3382e Merge pull request #5040 from yschimke/remove_everything_is_non_null
Remove package-info.java
2019-05-12 09:07:52 -04:00
Yuri Schimke
6a4d933847 Convert Internal to Kotlin (#5041)
* Convert Internal to Kotlin

* Fix

* Update Internal.kt

* Update Internal.kt
2019-05-12 09:07:20 -04:00
Yuri Schimke
076593222d Remove package-info.java 2019-05-12 10:10:38 +01:00
Jesse Wilson
74a9c28ba0 Convert RealEventSource.java to .kt (#4910)
* Rename RealEventSource.java to .kt

* Convert RealEventSource.java to .kt
2019-04-14 08:16:06 -04:00
Jesse Wilson
677511dacc Merge pull request #4899 from square/jwilson.0407.more_idiomatic
Use more idiomatic Kotlin in EventSources and elsewhere
2019-04-07 21:47:06 -04:00
Jesse Wilson
484a5d84a9 Use more idiomatic Kotlin in EventSources and elsewhere 2019-04-07 20:06:07 -04:00
Jesse Wilson
11805c14a4 Put apply plugin at the top of the build 2019-04-07 16:55:52 -04:00
Jesse Wilson
34b1909cc7 Convert okhttp-sse to Kotlin (#4896)
* Rename EventSource.java to .kt

* Convert okhttp-sse to Kotlin
2019-04-07 16:48:44 -04: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
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
432381d9fb Enforce full-call timeouts on SSE setup
Once the response headers are received we go back to not having
any timeout enforced.

Closes: https://github.com/square/okhttp/issues/4646
2019-03-09 16:29:07 -05:00
Amir Livneh
018510fa40 Rename OkHttpClientTestingRule to OkHttpClientTestRule 2019-03-07 07:24:05 -05:00
Amir Livneh
aca6785440 Use a TestRule to check for connection leaks 2019-03-06 06:21:15 -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
Jake Wharton
9b9e5bd38d hashCode and toString (#4516)
* Use Objects.hashCode from Java 7 / API 19

* Use Objects.toString from Java 7 / API 19
2019-01-01 21:06:54 -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
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
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
04a74b2df4 Confirm that call timeouts don't apply to SSE or web sockets. 2018-11-06 21:42:34 +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
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
d908a676c2 Support client authentication in MockWebServer
Also expose the handshake in the RecordedResponse.

https://github.com/square/okhttp/issues/3934
2018-07-06 10:08:19 -04:00
Jake Wharton
0d04eecc01 Defer creating reader until necessary 2018-06-23 17:11:20 -04:00
Yuri Schimke
63ed542534 API for handling an unexpected SSE response 2018-06-23 16:16:57 +01:00