Jake Wharton
9631227619
Add a web socket call concept for connecting.
...
Similar to HTTP and Call, the WebSocketCall is a representation of a pending HTTP request and subsequent upgrade to speak web sockets. Upon synchronous execution you are handed a WebSocket instance for synchronous writing and also pass in a WebSocketListener for async callbacks due to reading.
The API changes in this commits also generalize WebSocket such that it's agnostic to being a client or server peer.
2014-12-31 23:13:07 -08:00
Jesse Wilson
1d86439e90
[maven-release-plugin] prepare for next development iteration
2014-12-30 21:52:35 -05:00
Jesse Wilson
6aef5ab3c5
[maven-release-plugin] prepare release parent-2.2.0
2014-12-30 21:52:33 -05:00
Jake Wharton
15c81fdfc2
Normalize caching size in loop-local variable.
...
This was present in a bunch of loops, but not all and not consistently. After fixing two, I figured that I would normalize them all under the umbrella of uniformity and being lazy (only lookup up the value once if it never changes).
2014-12-24 11:33:14 -08:00
Jesse Wilson
14ce397c11
Merge pull request #1227 from square/jwilson_1224_interceptor_samples_ii
...
Two more interceptor examples.
2014-12-24 11:58:38 -05:00
Jesse Wilson
94db3ceb0c
Two more interceptor examples.
2014-12-24 11:58:07 -05:00
Jesse Wilson
180f657573
Two interceptor samples.
2014-12-23 21:32:32 -05:00
Jake Wharton
789b536cb3
Working towards 2.2.0.
2014-11-29 18:15:31 -08:00
Jake Wharton
ff622aff0f
Merge pull request #1129 from square/websockets
...
Websockets!
2014-11-29 16:54:51 -08:00
Jesse Wilson
122e99980d
More context when the hostname is not verified.
...
Exception in thread "main" java.io.IOException: Hostname square.com not verified:
certificate: sha1/FBzx5Wrwa9EpylnPrsKjpBQu1RE=
DN: CN=square.com, OU=Information Security, O=Square Inc., STREET=1455 Market Street, L=San Francisco, ST=California, OID.2.5.4.17=94103, C=US, SERIALNUMBER=4699855, OID.2.5.4.15=Private Organization, OID.1.3.6.1.4.1.311.60.2.1.2=Delaware, OID.1.3.6.1.4.1.311.60.2.1.3=US
subjectAltNames: [square.com, www.square.com, cash.square.com, blog.square.com]
at com.squareup.okhttp.Connection.upgradeToTls(Connection.java:242)
at com.squareup.okhttp.Connection.connect(Connection.java:155)
at com.squareup.okhttp.Connection.connectAndSetOwner(Connection.java:171)
at com.squareup.okhttp.OkHttpClient$1.connectAndSetOwner(OkHttpClient.java:119)
Closes https://github.com/square/okhttp/issues/1163
2014-11-25 22:22:41 -05:00
Jake Wharton
f6617dd103
Migrate types to 'internal' package.
...
This will allow us to bake the implementation and API on master with normal development of the library.
2014-11-04 23:42:51 -08:00
Jake Wharton
b72c9567df
Hook up the web socket reader and writer together.
...
Add a simple real-world recipe which talks to an echo server.
2014-11-04 23:29:57 -08:00
Jesse Wilson
ec1b266f1d
[maven-release-plugin] prepare for next development iteration
2014-11-05 02:12:03 -05:00
Jesse Wilson
7b6771bb29
[maven-release-plugin] prepare release parent-2.1.0-RC1
2014-11-05 02:12:01 -05:00
Jesse Wilson
0316426ecf
Bump pom versions to 2.1.0-SNAPSHOT.
2014-11-05 00:21:52 -05:00
Jesse Wilson
83090befcc
Certificate pinning.
2014-10-11 22:27:13 -04:00
mike castleman
a1c0872a34
provide a friendlier API for multipart forms.
...
Also, escape the name and filename tokens, and include some small
changes from CR.
2014-07-01 19:53:38 -04:00
Jesse Wilson
f2d5fcbd40
[maven-release-plugin] prepare for next development iteration
2014-06-21 00:02:22 -04:00
Jesse Wilson
a3c18f69c9
[maven-release-plugin] prepare release parent-2.0.0
2014-06-21 00:02:19 -04:00
Jake Wharton
8b58ecf49b
Merge pull request #923 from square/jw/failure-io
...
Use IOException in Callback failure method.
2014-06-11 21:06:10 -07:00
Jesse Wilson
6580d0221b
Merge pull request #921 from square/jwilson_0611_tidy_examples
...
Tidy up recipes.
2014-06-11 23:56:51 -04:00
Jake Wharton
6afd57683c
Use IOException in Callback failure method.
2014-06-11 19:32:41 -07:00
Jesse Wilson
9bba277483
Examples for authenticating and posting a form
2014-06-11 22:19:22 -04:00
Jesse Wilson
a8a39be3f6
Tidy up recipes.
...
Make names slightly more consistent.
2014-06-11 22:18:22 -04:00
Jesse Wilson
2cea341be1
[maven-release-plugin] prepare for next development iteration
2014-06-11 01:36:58 -04:00
Jesse Wilson
f171096b11
[maven-release-plugin] prepare release parent-2.0.0-RC2
2014-06-11 01:34:55 -04:00
Jesse Wilson
543b335640
Multipart POST example using imgur's API.
2014-06-10 22:27:48 -04:00
Jake Wharton
1ae96798cb
Revert builder-esque return types from OkHttpClient's timeout methods.
2014-06-10 15:08:37 -07:00
Jesse Wilson
5641d02a8d
Add a Headers recipe.
2014-06-08 12:47:10 -04:00
Jake Wharton
848ad4a5c3
Merge pull request #893 from square/jwilson_0603_configure_timeouts_recipe
...
Recipe for configuring timeouts.
2014-06-03 23:51:35 -07:00
Jesse Wilson
ea9103a243
Recipe for configuring timeouts.
2014-06-03 23:39:22 -07:00
Jesse Wilson
22bb048e13
Recipe to clone OkHttpRequest for per-request config changes.
2014-06-03 23:32:10 -07:00
Jesse Wilson
4c77a1cc53
Cancel recipe.
2014-06-02 00:48:12 -07:00
Jesse Wilson
f7c3bad89f
Give each recipe its own file.
2014-06-01 19:31:13 -04:00
Jesse Wilson
1ba78fa29d
Some POST samples.
2014-05-31 10:01:19 -04:00
Jesse Wilson
84ba90faf8
Recipes for Gson and Caching.
2014-05-28 00:31:16 -04:00
Jesse Wilson
95ea889b5b
First couple recipes.
2014-05-26 23:15:58 -04:00
Jesse Wilson
1a1cc18f26
Update samples and marketing site.
2014-05-25 10:01:37 -04:00
Jesse Wilson
cc92c4cecc
[maven-release-plugin] prepare for next development iteration
2014-05-24 02:03:47 -04:00
Jesse Wilson
8dcc74d339
[maven-release-plugin] prepare release parent-2.0.0-RC1
2014-05-24 02:03:37 -04:00
Jesse Wilson
9fcb67db2f
Rename Request.Body to RequestBody and Response.Body to ResponseBody.
...
Compelling alternative is ReadableBody and WritableBody, or BodySource and BodySink.
Which in theory permits reuse for serverside body makers. But I don't like those names
as much.
2014-05-10 08:26:44 -04:00
Adrian Cole
520d9fc2bc
Support common http verbs including zero length POST, DELETE.
2014-04-26 08:56:21 -07:00
Adrian Cole
63d4dfaaa6
Merge Job into Call. CallTest = AsyncApiTest + SyncApiTest.
2014-04-25 11:13:39 -07:00
Jake Wharton
fc6c47fddf
Migrate samples to the new API.
2014-04-17 00:21:13 -07:00
Jake Wharton
faea360ddf
Toward a 2.0!
2014-01-11 18:59:47 -08:00
Jake Wharton
ca7d09b4e8
[maven-release-plugin] prepare for next development iteration
2013-08-23 23:19:52 -07:00
Jake Wharton
4eb81fee1f
[maven-release-plugin] prepare release parent-1.2.1
2013-08-23 23:19:48 -07:00
Jake Wharton
db3b3f4d2a
[maven-release-plugin] prepare for next development iteration
2013-08-12 00:01:30 -07:00
Jake Wharton
f7699d9243
[maven-release-plugin] prepare release parent-1.2.0
2013-08-12 00:01:26 -07:00
Jake Wharton
bc3aa64462
Revert "[maven-release-plugin] prepare release parent-1.2"
...
This reverts commit ad928c668d .
2013-08-11 23:45:35 -07:00