Jake Wharton
08c24f0582
Merge pull request #804 from square/jwilson_0505_redirected_in_auth
...
Track redirectedBy in HttpEngine.
2014-05-05 17:51:54 -07:00
Jesse Wilson
ee2ed56c9a
Track redirectedBy in HttpEngine.
...
Tracking it in Call meant we would need to duplicate code
in HttpURLConnection if we wanted the same behavior.
2014-05-05 20:41:13 -04:00
Jesse Wilson
d8c4da5d90
Merge pull request #801 from square/adrian.pushcallback-order
...
Ensure Push Promise callbacks are processed in order.
2014-05-05 11:36:29 -04:00
Adrian Cole
c85153e6a6
fix #768 : Ensure Push Promise callbacks are processed in order.
2014-05-05 08:19:18 -07:00
Jesse Wilson
f63a8d7de0
Merge pull request #802 from square/adrian.force-cancel-order
...
Reorder test to ensure call is canceled before its body is returned
2014-05-05 08:32:39 -04:00
Adrian Cole
80cb022e49
fix #789 : Reorder test to ensure call is canceled before its body is returned.
2014-05-04 22:33:06 -07:00
Jesse Wilson
899fb43a55
Merge pull request #792 from square/adrian.http2-draft12
...
Update to http/2 draft 12
2014-05-04 23:26:29 -04:00
Adrian Cole
cc38140be4
Added support for http/2 draft 12, which is incompatible with previous priority schemes.
2014-05-04 11:53:15 -07:00
Adrian Cole
069dda77b1
Update to Hpack Draft 07.
2014-05-04 09:15:09 -07:00
Adrian Cole
25b2a67ff5
Merge pull request #798 from square/jwilson_0504_no_default_cache
...
Don't honor the default java.net.ResponseCache.
2014-05-04 08:27:14 -07:00
Jesse Wilson
c536a8db8d
Don't honor the default java.net.ResponseCache.
...
Applications using ResponseCache.setDefault() will need to use OkHttp's
cache interface instead.
We no longer support any user-defined caches.
2014-05-04 10:02:27 -04:00
Jesse Wilson
cd7cd8ffed
Merge pull request #794 from square/jwilson_0503_routedb
...
Hide route database.
2014-05-04 09:35:08 -04:00
Jesse Wilson
0466edb4ad
Hide route database.
2014-05-04 00:31:08 -04:00
Jesse Wilson
cf17703158
Merge pull request #793 from square/jwilson_0503_copywithdefaults
...
Test copyWithDefaults.
2014-05-03 23:52:25 -04:00
Adrian Cole
f4c1b7b159
Merge pull request #783 from square/jwilson_0427_okio_timeouts_spdy
...
Use Okio for timeouts in SPDY.
2014-05-03 18:19:39 -07:00
Jesse Wilson
5ddcdf5482
Use Okio for timeouts in SPDY.
...
This depends on new AsyncTimeout API in Okio being released.
2014-05-03 21:05:33 -04:00
Jesse Wilson
73a0649953
Test copyWithDefaults.
...
Also change initialization of the default SSL factory to be a global
constant rather than a per-client constant. Otherwise two clones of
the same client won't share an SSLSocketFactory.
2014-05-03 20:58:20 -04:00
Jesse Wilson
05562e064a
Merge pull request #790 from square/jwilson_0430_hide_hide_hide
...
Hide ConnectionPool.recycle and share.
2014-04-30 22:20:04 -04:00
Jesse Wilson
c26f9af048
Hide ConnectionPool.recycle and share.
2014-04-30 22:02:51 -04:00
Jesse Wilson
033cfcf366
Merge pull request #788 from square/jwilson_0430_hide_more_apis
...
Hide more APIs with Internal.access.
2014-04-30 22:00:48 -04:00
Jesse Wilson
1044d9eea2
Hide more APIs with Internal.access.
...
The callsite is uglier but the API is neater. I think overall
it's a small win.
2014-04-30 21:36:41 -04:00
Jesse Wilson
7e6e92de51
Merge pull request #786 from square/jwilson_0430_hide_implementation_details
...
New approach to hiding implementation details.
2014-04-30 12:26:30 -04:00
Jesse Wilson
853b4e35f1
New approach to hiding implementation details.
...
This relies on the happy accident that OkHttpClient.class will be initialized
before any attempt to use internal APIs.
2014-04-30 12:16:33 -04:00
Jake Wharton
31f5b1dba5
Merge pull request #785 from square/jwilson_0428_rename_cache
...
Rename HttpResponseCache to Cache.
2014-04-28 20:30:43 -07:00
Jesse Wilson
329750f917
Rename HttpResponseCache to Cache.
...
Also move OkResponseCache.java into internal.
2014-04-28 23:05:39 -04:00
Jesse Wilson
c277c8926f
Merge pull request #784 from square/jwilson_0428_cache_interfaces
...
Change HttpResponseCache to not implement java.net.ResponseCache.
2014-04-28 21:52:59 -04:00
Jesse Wilson
7e28b1d6b6
Change HttpResponseCache to not implement java.net.ResponseCache.
...
This marks some methods as @Deprecated and internal-only.
Unfortunately we don't have a great mechanism to hide them from
the documented API.
2014-04-28 21:37:51 -04:00
Jesse Wilson
d1768cb499
Merge pull request #687 from square/adrian.death-to-npn
...
Add ALPN support; Configure maven to use ALPN on OpenJDK 8.
2014-04-28 13:19:54 -04:00
Adrian Cole
a5b7c3b2f3
Add ALPN support; Configure maven to use ALPN on OpenJDK 8.
2014-04-28 09:44:46 -07:00
Jake Wharton
743ae0cbba
Merge pull request #781 from square/jwilson_0427_tiny_cleanups
...
Small cleanups.
2014-04-27 12:57:54 -07:00
Adrian Cole
58b71d915f
Merge pull request #780 from square/jwilson_0427_rename_execute
...
Rename execute to enqueue for async calls.
2014-04-27 10:30:23 -07:00
Jesse Wilson
654c0d22cd
Merge pull request #779 from square/adrian.remove-npn-tagging
...
Don't suggest NPN will be used when it might be ALPN
2014-04-27 13:02:46 -04:00
Jesse Wilson
770a1f954d
Small cleanups.
...
Return the OkHttpClient on setters.
Remove some completed TODOs in Call.
Link to Okio in Javadoc.
2014-04-27 12:40:58 -04:00
Jesse Wilson
b057ad2418
Rename execute to enqueue for async calls.
...
I prefer 'enqueue' because we might not actually run the job
for some time (due to dispatcher's limits).
2014-04-27 12:18:52 -04:00
Adrian Cole
022173a444
Don't suggest NPN will be used when it might be ALPN.
2014-04-27 09:12:37 -07:00
Adrian Cole
fc9f0ed592
Merge pull request #777 from square/jwilson_0427_kill_pickport
...
When we want a port, take it.
2014-04-27 08:16:51 -07:00
Jesse Wilson
da7ef589e1
When we want a port, take it.
2014-04-27 10:58:20 -04:00
Jesse Wilson
c7c1d2605a
Merge pull request #773 from square/jw/forwarding
...
Use a ForwardingSource where possible.
2014-04-27 10:19:25 -04:00
Jesse Wilson
a1f0b4a41e
Merge pull request #774 from square/jw/huc-stuff
...
Update cache tests to use JUnit rules. Break out HUC-specific test.
2014-04-27 10:18:06 -04:00
Jake Wharton
c908bfbcf6
Update cache tests to use JUnit rules. Break out HUC-specific test.
2014-04-27 03:44:22 -07:00
Jake Wharton
7f3d9b43b7
Drop redundant qualifier on already-imported constant.
2014-04-27 02:52:10 -07:00
Jake Wharton
550c5e3865
Use a ForwardingSource where possible.
2014-04-27 01:57:19 -07:00
Jesse Wilson
d32d452ecb
Merge pull request #771 from square/adrian.okcurl-frames
...
Add --frames arg to okcurl, which sends HTTP/2 frame metadata to STDERR.
2014-04-26 16:45:40 -04:00
Jesse Wilson
e0c0e9d563
Merge pull request #770 from square/adrian.methods-spdy
...
Ensure SPDY variants support zero-length DELETE, POST.
2014-04-26 15:51:27 -04:00
Adrian Cole
bdf42b20e8
Add --frames arg to okcurl, which sends HTTP/2 frame metadata to STDERR.
2014-04-26 11:15:30 -07:00
Adrian Cole
a76a1f93d3
Merge pull request #760 from square/jwilson_0424_more_followup
...
Move more behavior into HttpEngine.followUpRequest
2014-04-26 11:04:19 -07:00
Jesse Wilson
b7542587b8
Move more behavior into HttpEngine.followUpRequest
2014-04-26 10:02:19 -07:00
Adrian Cole
0ee2cc330a
Ensure SPDY variants support zero-length DELETE, POST.
2014-04-26 09:33:24 -07:00
Jesse Wilson
fa842d11fc
Merge pull request #769 from square/adrian.common-verbs
...
Support common http verbs including zero length POST, DELETE.
2014-04-26 12:22:50 -04:00
Adrian Cole
520d9fc2bc
Support common http verbs including zero length POST, DELETE.
2014-04-26 08:56:21 -07:00