jwilson
9dc1bbad24
[maven-release-plugin] prepare release parent-3.6.0
2017-01-29 14:14:33 -05:00
Jesse Wilson
bdcd06f8ca
Merge pull request #3091 from square/jwilson.0107.custom_cipher_siutes
...
Example on customizing cipher suites.
2017-01-07 21:33:20 -05:00
jwilson
cbe7baa474
Fix examples to give up if authentication fails.
...
Closes: https://github.com/square/okhttp/issues/2464
2017-01-07 18:45:32 -05:00
jwilson
bb0f81e1b8
Example on customizing cipher suites.
...
It's a disgusting amount of code unfortunately.
Closes: https://github.com/square/okhttp/issues/2698
2017-01-07 18:28:26 -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
949439ae5b
Rename NewWebSocket to WebSocket.
...
The synchronous WebSocket class is gone.
2016-11-19 15:16:58 -05:00
jwilson
40dddb9dcf
Migrate MockWebServer to the async web sockets API.
2016-11-18 21:34:02 -05:00
Jake Wharton
90f6bcb21f
Remove inconsistent 'send' prefix from message/ping methods.
2016-10-11 23:08:49 -04:00
Jake Wharton
6306aec01d
Use ByteString for web socket ping/pong payloads.
2016-09-20 00:53:36 -04:00
Jake Wharton
508eb90b3c
Web socket API and implementation improvements.
...
* onFailure callback's exception type widened to Throwable. This allows runtime exceptions from other callbacks to be passed along.
* Ensure the connection is closed properly for all failures.
* Fix and document the threading inside RealWebSocket. This ensures the listener is always called on the same thread and replies always happen from the correct thread.
2016-09-19 23:53:55 -04:00
Jake Wharton
039bcf92db
Move WebSockets from separate artifact to main.
...
The factory method has moved to OkHttpClient and WebSocketCall has changed to an interface.
2016-09-13 12:29:19 -04:00
Jonh Wendell
7b2cbab2b7
Improve WebSocketEcho example
...
Shutdown the executor upon close or failure. This avoids the program
hanging after finished the execution.
Set the client read timeout to 0 (the default timeout is 10s). A read
timeout doesn't make sense for a WebSocket.
2016-08-13 13:40:20 -03:00
jwilson
f85cae7f0d
[maven-release-plugin] prepare for next development iteration
2016-07-08 22:39:32 -04:00
jwilson
ee2b9a2917
[maven-release-plugin] prepare release parent-3.4.0
2016-07-08 22:39:28 -04:00
jwilson
7e773f39f9
[maven-release-plugin] prepare for next development iteration
2016-07-02 23:18:34 -04:00
jwilson
9db491924a
[maven-release-plugin] prepare release parent-3.4.0-RC1
2016-07-02 23:18:29 -04:00
jwilson
7a807aff6f
[maven-release-plugin] prepare for next development iteration
2016-05-28 14:11:55 -04:00
jwilson
358d96c5fb
[maven-release-plugin] prepare release parent-3.3.1
2016-05-28 14:11:52 -04:00
jwilson
16aed96a35
[maven-release-plugin] prepare for next development iteration
2016-05-24 22:12:31 -04:00
jwilson
b031042e67
[maven-release-plugin] prepare release parent-3.3.0
2016-05-24 22:12:28 -04:00
jwilson
3699d5c9fd
Better documentation and examples on closing response bodies.
...
Also implement Closeable on Response to make it easier to do the right thing.
2016-05-21 21:29:42 -04:00
jwilson
94bda42362
Pin fewer certificates in our sample.
...
Closes: https://github.com/square/okhttp/issues/2535
2016-05-07 18:21:50 -04:00
jwilson
ad103f421e
Use Moshi in OkHttp.
...
As discussed here: https://github.com/square/okhttp/pull/2492
2016-04-21 23:20:30 -10:00
jwilson
85f74e2004
Accept user-provided trust managers in OkHttpClient.Builder
...
Closes: https://github.com/square/okhttp/issues/2427
2016-03-28 19:02:25 -04:00
jwilson
c293aecd28
[maven-release-plugin] prepare for next development iteration
2016-02-25 20:54:11 -05:00
jwilson
14eb077351
[maven-release-plugin] prepare release parent-3.2.0
2016-02-25 20:54:08 -05:00
jwilson
7396ac00bc
Implement support for SHA-256 pins.
...
Closes: https://github.com/square/okhttp/issues/1539
2016-02-21 18:38:04 -05:00
jwilson
ac4aea6a52
[maven-release-plugin] prepare for next development iteration
2016-02-10 08:37:54 -05:00
jwilson
9aa5e87a2c
[maven-release-plugin] prepare release parent-3.1.2
2016-02-10 08:37:52 -05:00
jwilson
ef1dbe1297
[maven-release-plugin] prepare for next development iteration
2016-02-07 22:10:22 -05:00
jwilson
0cd6b186b1
[maven-release-plugin] prepare release parent-3.1.1
2016-02-07 22:10:19 -05:00
jwilson
50395f9b6a
[maven-release-plugin] prepare for next development iteration
2016-02-06 12:59:27 -05:00
jwilson
519ec8adca
[maven-release-plugin] prepare release parent-3.1.0
2016-02-06 12:59:23 -05:00
Dave Roberge
0f4d824418
Updated gson recipe to close response body.
2016-01-16 13:52:53 -05:00
jwilson
9b0706489c
[maven-release-plugin] prepare for next development iteration
2016-01-14 16:03:12 -08:00
jwilson
bdbb3ad03c
[maven-release-plugin] prepare release parent-3.0.1
2016-01-14 16:03:08 -08:00
jwilson
2dc79e01e1
[maven-release-plugin] prepare for next development iteration
2016-01-13 14:12:19 -08:00
jwilson
c9b812a4ab
[maven-release-plugin] prepare release parent-3.0.0
2016-01-13 14:12:09 -08:00
jwilson
8ff3725031
Change Callback to take a Call.
...
This makes it much easier to test if the call was canceled.
Note that the Call's request is always the original user request.
This is different than the previous request that was passed in, as
that could have been the follow up to a redirect.
2016-01-11 15:40:28 -08:00
jwilson
a2d9f7cfa9
Adjust documentation for OkHttp 3.
2016-01-02 09:34:47 -05:00
jwilson
6d1a0b4f96
[maven-release-plugin] prepare for next development iteration
2016-01-02 02:31:17 -05:00
jwilson
ffc35dbd02
[maven-release-plugin] prepare release parent-3.0.0-RC1
2016-01-02 02:31:14 -05:00
jwilson
7826bcb2fb
Fix some get prefixes on Cache and ConnectionPool.
2016-01-02 02:07:30 -05:00
jwilson
21d6303418
Restore no-args constructor for OkHttpClient.
...
This is a popular API and keeping it working is handy.
2016-01-01 15:22:14 -05:00
jwilson
38d570a6b2
Drop get and set prefixes in OkHttpClient, OkHttpClient.Builder
2016-01-01 12:12:35 -05:00
jwilson
f2461183e8
Refactor towards an OkHttpClient.Builder.
...
Still some work to do on method naming, but this was the interesting part.
Also very much need to rename OkUrlFactory in tests to urlFactory, otherwise
the client.client stuff becomes madness.
2016-01-01 10:55:32 -05:00
jwilson
e7023e0344
Sort more imports and wrap documentation at 100 columns.
...
This is a mechanical refactoring. The only thing I had trouble with is IntelliJ's
weak support for `<ul>` tags in Javadoc.
2015-12-23 19:37:17 -05:00
jwilson
02d6b4e78c
Drop the get prefix on Connection accessors.
2015-12-21 21:10:48 -05:00
Jesse Wilson
a7605a62f7
Merge pull request #2126 from square/jwilson_1217_authenticator3
...
One authenticate method on the authenticator interface.
2015-12-18 10:28:10 -05:00