1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-22 15:42:00 +03:00
Commit Graph

929 Commits

Author SHA1 Message Date
Jake Wharton
cf41984186 Merge pull request #612 from square/okhttp_15_jwilson_strip_20_apis
Strip 2.0 APIs from the 1.5 branch.
2014-03-07 11:23:32 -08:00
Jesse Wilson
8bc100eaad Strip 2.0 APIs from the 1.5 branch. 2014-03-07 11:16:41 -08:00
Jesse Wilson
7b106923e0 Merge pull request #602 from square/adrian.567.slow-network-tests
Test case for read timeout granularity
2014-03-06 16:42:08 -08:00
Jesse Wilson
fb454365c2 Merge pull request #610 from square/adrian.delete-body
Allow DELETE Request Body, Ensure Sane Behavior.
2014-03-06 16:40:34 -08:00
Adrian Cole
f0941ff6ea fix #605: Allow DELETE Request Body, Ensure Sane Behavior. 2014-03-06 15:58:28 -08:00
Adrian Cole
cb2d297ae2 Test case for #567: read timeout granularity. 2014-03-06 15:56:31 -08:00
Adrian Cole
26b5f35718 Update MWS to pay attention to throttling for SPDY streams. 2014-03-06 15:56:31 -08:00
Adrian Cole
5e1c5f5f3e Merge pull request #601 from square/jwilson_0305_cache_access
Restore support for ResponseCache.setDefault().
2014-03-06 09:00:53 -08:00
Jesse Wilson
7a1c67a82f Merge pull request #609 from nfuller/IOExceptionOnClose2
Make HttpURLConnection streams throw IOException after close()
2014-03-06 08:24:30 -08:00
Jesse Wilson
57c221ede3 Merge pull request #604 from nfuller/ResponsePropertiesRequestLine
Removing requestLine from HttpURLConnection.getRequestProperties()
2014-03-06 08:20:14 -08:00
Neil Fuller
129c937fb3 Make HttpURLConnection streams throw IOException after close()
This is to revert to prior behavior found in earlier releases:
OkHttp changed to throw IllegalStateException.

HttpEngine has also been changed to explicitly close the request
body on disconnect() to ensure that these exceptions are thrown
at the expected moment (e.g. on write() on a closed, buffered
stream).

Additional close() checks have been added to okio classes and
tests have been added. The tests are probes for interesting
examples, not complete.
2014-03-06 11:54:33 +00:00
Neil Fuller
fbbc6942cf Removing requestLine from HttpURLConnection.getRequestProperties()
This was breaking an Android test and appears not to be part of the spec for
HttpURLConnection.

To fix the test fully another change was required to add additional headers
passed to the CookieHandler.

Also added are some tests ported over from Android that test
CookieHandler/CookieManager and improve coverage of this area.
2014-03-06 09:13:41 +00:00
Jesse Wilson
fda2265d78 Merge pull request #603 from square/adrian.readSendsWindowUpdate-deflake
Do not enforcing order of window update frames
2014-03-05 10:13:31 -08:00
Adrian Cole
8fa4242d02 Attempt to deflake readSendsWindowUpdate by not enforcing order of window update frames. 2014-03-05 09:39:30 -08:00
Jesse Wilson
8f035fc347 Restore support for ResponseCache.setDefault(). 2014-03-05 09:27:29 -08:00
Jesse Wilson
74027a4e0b OkHttp 1.5 changelog. 2014-03-04 23:13:12 -08:00
Adrian Cole
01d15a6ff2 Merge pull request #597 from square/jwilson_0304_kill_some_dead_code
Kill some dead code on source and sink closing.
2014-03-04 21:08:26 -08:00
Adrian Cole
f77bfc0a77 Merge pull request #598 from square/adrian.fix-byteStringLength
incorrect processing of variable-length quantity in http/2 hpack
2014-03-04 21:07:42 -08:00
Jesse Wilson
788a802579 Kill some dead code on source and sink closing. 2014-03-04 21:03:27 -08:00
Adrian Cole
8cf085f404 Merge pull request #599 from square/adrian.pushobserver-nits
Address PushObserver feedback
2014-03-04 21:01:14 -08:00
Adrian Cole
5f7c3bf39c fix #596: incorrect processing of variable-length quantity in http/2 hpack. 2014-03-04 21:00:32 -08:00
Adrian Cole
88c95dd4f1 Merge pull request #594 from square/jwilson_0304_delegating_https_url_connection
Share code between delegating HttpsURLConnections.
2014-03-04 20:59:22 -08:00
Adrian Cole
1ab398fb93 Address PushObserver feedback. 2014-03-04 20:53:13 -08:00
Jesse Wilson
60ca88944f Share code between delegating HttpsURLConnections. 2014-03-04 16:23:16 -08:00
Jesse Wilson
11aa925a54 Merge pull request #595 from square/jw/no-more-fat-jar
Remove creation of 'fat' jar.
2014-03-04 12:03:16 -08:00
Jake Wharton
cf63fcc48a Remove creation of 'fat' jar.
Since the 'okhttp-protocols' module no longer exists we do not need to create this.
2014-03-04 10:55:48 -08:00
Jesse Wilson
cc8e8664df Merge pull request #574 from nfuller/ResponseCacheAdapter
Adding ResponseCacheAdapter.
2014-03-04 08:07:46 -08:00
Jesse Wilson
f5eceb9137 Merge pull request #593 from nfuller/FixImports
Prefer org.junit over junit.framework for OkHttp code.
2014-03-04 08:02:59 -08:00
Neil Fuller
444bde0ec1 Prefer org.junit over junit.framework for OkHttp code. 2014-03-04 15:50:57 +00:00
Neil Fuller
2a4b1c18a3 Adding ResponseCacheAdapter.
This allows OkHttp to continue supporting java.net.ResponseCache,
which is desirable for Android's HttpURLConnection
implementation.
2014-03-04 14:45:41 +00:00
Jesse Wilson
a2e10166e0 Merge pull request #590 from square/jwilson_chunk_buffering
Rely in external buffers in ChunkedSink.
2014-03-03 13:14:22 -08:00
Jesse Wilson
3585ac2207 Rely in external buffers in ChunkedSink.
The extra buffer doesn't add any value.
2014-03-03 13:14:07 -08:00
Jesse Wilson
7f9ff37791 Merge pull request #588 from square/jwilson_okio_docs
Docs for Source and Sink.
2014-03-03 13:12:46 -08:00
Jesse Wilson
e2d95bfaf2 Docs for Source and Sink. 2014-03-03 13:12:36 -08:00
Adrian Cole
7c36814eb1 Merge pull request #586 from square/jwilson_tls_fallback
Don't blame modern TLS when a pooled connection fails.
2014-03-03 09:03:59 -08:00
Adrian Cole
2c47389660 Merge pull request #587 from square/jwilson_spdy_sink_buffer
Rely in external buffers in SpdyDataSink.
2014-03-03 08:58:48 -08:00
Jake Wharton
d48eb0dcb3 Merge pull request #589 from square/jwilson_disklrucache_okio
Use Okio in DiskLruCache.
2014-03-02 23:50:07 -08:00
Jesse Wilson
1e475f9a20 Use Okio in DiskLruCache. 2014-03-03 02:16:53 -05:00
Jesse Wilson
e5b90c6e3d Rely in external buffers in SpdyDataSink.
The extra buffer doesn't add any value.
2014-03-03 02:15:06 -05:00
Jesse Wilson
98f60cc9f0 Don't blame modern TLS when a pooled connection fails. 2014-03-03 02:14:06 -05:00
Jesse Wilson
acccc681f4 Merge pull request #566 from square/adrian.push-observer
Add HTTP/2 PushObserver
2014-03-02 14:55:24 -05:00
Adrian Cole
a5ba3e9062 Add HTTP/2 PushObserver. 2014-03-01 21:23:04 -08:00
Adrian Cole
24b6957992 Merge pull request #584 from square/jwilson_0301_sneakythrow
Use a sneaky throw when RealBufferedSink.close() fails.
2014-03-01 08:23:40 -08:00
Jesse Wilson
5b359bfd81 Merge pull request #583 from square/jwilson_0301_method
Fix and test PATCH.
2014-03-01 11:08:43 -05:00
Jesse Wilson
99e2dc2df8 Use a sneaky throw when RealBufferedSink.close() fails.
This is the same technique used by the buffered streams in AOSP. It's
a little more reliable than what we were doing before because it will
still close the underlying sink regardless of what write() throws.
2014-03-01 11:04:19 -05:00
Jesse Wilson
c6316bfa4c Fix and test PATCH. 2014-03-01 10:22:32 -05:00
Jesse Wilson
f52de4c771 Merge pull request #582 from square/jwilson_0301_readlongs
Don't require OkBuffer callers to cast.
2014-03-01 10:10:17 -05:00
Jesse Wilson
85129f1c39 Merge pull request #579 from square/jwilson_03031_multiple_routes
Ignore a broken test for SPDY failure recovery.
2014-03-01 10:10:05 -05:00
Marcelo Cortes
f0602129f2 Merge pull request #577 from square/jwilson_0301_recover_from_ssl_protocol_failures
Recover from SSL protocol exceptions.
2014-03-01 09:34:44 -05:00
Jesse Wilson
4fa4694839 Don't require OkBuffer callers to cast.
The casting masks bugs. Instead accept a long and do a range check in
OkBuffer.
2014-03-01 09:34:26 -05:00