1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-21 03:41:07 +03:00
Commit Graph

904 Commits

Author SHA1 Message Date
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
Marcelo Cortes
e62381130c Merge pull request #580 from square/jwilson_0301_date_formats
Use the server's date format.
2014-03-01 09:33:46 -05:00
Marcelo Cortes
3746efe897 Merge pull request #581 from square/jwilson_0301_gmt_dates
Confirm that we use GMT formatting in setIfModifiedSince().
2014-03-01 09:31:42 -05:00
Jesse Wilson
5c3cfd9148 Confirm that we use GMT formatting in setIfModifiedSince(). 2014-03-01 09:16:29 -05:00
Jesse Wilson
c66899bbea Use the server's date format.
Slightly related to this AOSP bug report:
https://code.google.com/p/android/issues/detail?id=66135
2014-03-01 08:58:31 -05:00
Jesse Wilson
8b0401eb7a Ignore a broken test for SPDY failure recovery.
https://github.com/square/okhttp/issues/578
2014-03-01 08:13:44 -05:00
Jesse Wilson
e40ebf8f43 Recover from SSL protocol exceptions.
Previously this appeared to work, but only because our test environment
usually had multiple IP addresses for localhost.
2014-03-01 07:55:51 -05:00
Jesse Wilson
edb8164469 Tweak Markdown. 2014-02-28 22:52:27 -05:00
Jesse Wilson
6d8e198e2d New mockwebserver docs. 2014-02-28 22:47:02 -05:00
Adrian Cole
8d40ed8a98 Merge pull request #573 from square/jwilson_0227_modules
Rearrange OkHttp modules.
2014-02-27 21:39:45 -08:00
Jesse Wilson
110a4fac42 Rearrange OkHttp modules.
The HTTP client and SPDY code are now a single module that
mockwebserver depends upon.

The tests are now in a separate module that depends on both
OkHttp and mockwebserver.
2014-02-27 23:28:40 -05:00
Adrian Cole
d5cbd0aebe Merge pull request #571 from square/jwilson_0225_size
Rename OkBuffer.byteCount() to size().
2014-02-25 19:34:25 -08:00
jwilson
e7354e311c Rename OkBuffer.byteCount() to size().
Continue to use byteCount as a parameter name wherever we're
referring to the number of bytes to read or write.
2014-02-25 21:19:08 -05:00
Jesse Wilson
a64621dd14 Merge pull request #569 from square/jwilson_0224_keep_a_handshake
Keep the handshake after connecting.
2014-02-24 23:23:07 -05:00
jwilson
7c99d00088 Keep the handshake after connecting.
https://github.com/square/okhttp/issues/568
2014-02-24 23:10:26 -05:00
Adrian Cole
0fbe50cbc0 Merge pull request #565 from square/jwilson_0223_redirect_leak
Test for redirect leak bug.
2014-02-23 20:50:15 -08:00
jwilson
29ffd5237e Test for redirect leak bug. 2014-02-23 23:31:22 -05:00
Adrian Cole
494f894630 Merge pull request #564 from square/jwilson_0223_kill_strictlinereader
Kill StrictLineReader.
2014-02-23 17:27:39 -08:00
Adrian Cole
267ca9834a Merge pull request #563 from square/adrian.http2-push
Teach MockWebServer HTTP/2 Push Promise
2014-02-23 17:26:59 -08:00
Adrian Cole
fb46f100a4 Teach MockWebServer HTTP/2 Push Promise. 2014-02-23 17:16:01 -08:00
jwilson
a562b99d79 Kill StrictLineReader. 2014-02-23 20:07:22 -05:00
Adrian Cole
eb86e20a87 Merge pull request #562 from square/jwilson_0223_readUtf8_line
Promote line reading to BufferedSource.
2014-02-23 16:55:05 -08:00
jwilson
440fb302ff Promote line reading to BufferedSource. 2014-02-23 19:47:39 -05:00
Adrian Cole
0537eedd5d Merge pull request #561 from square/jwilson_0223_death_to_abstractoutputstream
Delete AbstractOutputStream and FaultRecoveringOutputStream.
2014-02-23 16:08:39 -08:00
Jesse Wilson
bf976c6a52 Merge pull request #560 from square/jwilson_0223_death_to_bytearraypool
Death to ByteArrayPool.
2014-02-23 18:52:26 -05:00
jwilson
2681bc4247 Delete AbstractOutputStream. 2014-02-23 18:48:40 -05:00