jwilson
e56f561e93
[maven-release-plugin] prepare release parent-3.7.0
2017-04-15 21:53:02 -04:00
jwilson
2d37490174
Add a sample where data is streamed via an Okio pipe.
2017-03-22 21:07:56 -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
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
Jesse Wilson
87a3ec9177
Merge pull request #3092 from square/jwilson.0107.give_up_auth
...
Fix examples to give up if authentication fails.
2017-01-07 21:33:10 -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
ca76167504
Make the crawler a little better.
...
Name threads by their URLs. Don't follow all fragments of the same URL.
2017-01-07 15:07:46 -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
5d43df973a
Fix an invalid HTML entity in the SlackApi Javadoc.
...
And-per-se-and
2016-12-01 10:52:06 -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
Sebastian Kürten
456105e5fd
Fix a few typos
2016-11-01 12:52:20 +01:00
jwilson
ce695b67fa
A WebSockets sample that uses the Slack API.
...
Currently it just prints WebSockets messages as they arrive, never sending any.
In a follow-up I'd like to do that, and also start to use this to figure out
where and how our WebSockets client can be improved.
https://github.com/square/okhttp/issues/2902
2016-10-23 11:24:22 -04: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
576fe76130
Don't waste bandwidth crawling non-HTML resources.
2016-07-09 07:23:34 -04: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