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

936 Commits

Author SHA1 Message Date
Jake Wharton
aebb2c4afd [maven-release-plugin] prepare release parent-1.5.0 parent-1.5.0 2014-03-07 14:59:51 -08:00
Jake Wharton
dc1d04b60e Build setup tweak to work around release plugin bug.
http://jira.codehaus.org/browse/MRELEASE-812
(cherry picked from commit c8638813ff)
2014-03-07 14:47:04 -08:00
Jake Wharton
acd9c8f6e5 Update change log a bit. 2014-03-07 14:34:33 -08:00
Jake Wharton
255edbee83 Merge pull request #614 from square/okhttp_15_jwilson_fix_teh_poms
Fix poms for 1.5.
2014-03-07 12:53:03 -08:00
Jesse Wilson
b5d620096d Fix poms for 1.5. 2014-03-07 12:45:53 -08:00
Jake Wharton
33b76c0d78 Merge pull request #613 from square/okhttp_15_version
Use the 1.5 version in the 1.5 branch.
2014-03-07 11:36:37 -08:00
Jesse Wilson
f76adcbb91 Use the 1.5 version in the 1.5 branch. 2014-03-07 11:35:35 -08:00
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