Jesse Wilson
7f63a35ab1
[maven-release-plugin] prepare release parent-3.12.0
2018-11-16 23:44:12 -05:00
Jesse Wilson
bcbbfc6a54
Make the nested BasicAuthInterceptor static ( #4368 )
2018-11-05 07:46:46 +00:00
jjshanks
0a8f418644
Add basic auth interceptor recipe ( #4336 )
2018-11-04 18:05:01 +00:00
Joshua Shanks
c951e6ed88
APIs to set date headers
2018-10-31 08:32:50 -07:00
Jesse Wilson
ed67b08057
Merge branch 'jwilson.0712.changelog_311'
...
* jwilson.0712.changelog_311:
[maven-release-plugin] prepare for next development iteration
[maven-release-plugin] prepare release parent-3.11.0
2018-07-13 00:10:48 -04: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
c07b8fddc9
HTTPS server sample
2018-07-12 22:46:57 -04:00
Jake Wharton
a2fb46b1a4
Merge pull request #4118 from square/jakew/parseOrThrow/2018-07-05
...
Add get(String) alternative which fails on invalid inputs
2018-07-06 15:49:25 -04:00
Jake Wharton
351b3d6bf7
Add get(String) alternative which fails on invalid inputs
...
This is an unchecked-throwing version of parse(String).
2018-07-06 15:30:55 -04:00
Jesse Wilson
e7aed0e03d
Merge pull request #4116 from square/jakew/parseOrThrow/2018-07-05
...
Add parse overload which fails on invalid inputs
2018-07-05 23:34:34 -04:00
Jake Wharton
36f4fd04f7
Add parse overload which fails on invalid inputs
2018-07-05 23:18:15 -04:00
Jesse Wilson
aac684aeae
Retain interrupted state when throwing InterruptedIOException
...
The drawbacks seem small; the callsite needs to handle interruption anyway
because the thread is prone to interruption.
And the upside is that a single interrupt should now be sufficient to break
out an in-flight OkHttp call.
Note that although we're fixing this, thread interruption is not well tested
in OkHttp. Most users should prefer Call.cancel(), which is well tested and
doesn't rely on the caller to know which threads OkHttp is using to make
the actual HTTP request.
Closes: https://github.com/square/okhttp/issues/3945
2018-07-05 22:37:24 -04:00
Jesse Wilson
44efb09904
Example of OkHttp+MockWebServer with UNIX domain sockets
2018-06-20 07:50:44 -04:00
Jesse Wilson
e86eb0e48b
[maven-release-plugin] prepare for next development iteration
2018-02-24 13:33:57 -05:00
Jesse Wilson
c0739a4199
[maven-release-plugin] prepare release parent-3.10.0
2018-02-24 13:33:52 -05:00
Yuri Schimke
fe445e4db6
Improve progress example ( #3744 )
...
* improve progress example
* bad import
2017-12-28 13:43:43 -05:00
Jesse Wilson
2bb2dc4340
[maven-release-plugin] prepare for next development iteration
2017-11-18 14:38:02 -05:00
Jesse Wilson
23b6f7556d
[maven-release-plugin] prepare release parent-3.9.1
2017-11-18 14:37:50 -05:00
Yuri Schimke
d6fd0d3832
Fix travis build
2017-09-12 08:32:24 +01:00
jwilson
b926a030c6
Add samples for EventListener
2017-09-06 12:11:37 -04:00
jwilson
51311219af
[maven-release-plugin] prepare for next development iteration
2017-09-04 17:00:21 -04:00
jwilson
51663fd08f
[maven-release-plugin] prepare release parent-3.9.0
2017-09-04 17:00:16 -04:00
Yuri Schimke
6cddc8973a
Close all Response in samples ( #3574 )
2017-09-02 11:05:43 +01:00
jwilson
304d2c9630
[maven-release-plugin] prepare for next development iteration
2017-05-13 10:58:15 -04:00
jwilson
cb981daecf
[maven-release-plugin] prepare release parent-3.8.0
2017-05-13 10:58:04 -04:00
jwilson
83b9dd4275
Upgrade to Checktyle 7.7.
...
This allows us to put @Nullable immediately preceding the return type,
which is exactly where we want it.
2017-05-06 14:21:55 -04:00
jwilson
6f8cdcca1d
[maven-release-plugin] prepare for next development iteration
2017-04-15 21:53:08 -04:00
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