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

889 Commits

Author SHA1 Message Date
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
Adrian Cole
e56fe1c07e Merge pull request #559 from square/jwilson_0223_test_cleanup_2
Use OkBuffer in Spdy3Test.
2014-02-23 15:46:42 -08:00
jwilson
416e59e219 Death to ByteArrayPool.
Murdering this was the motivation of the entire Okio refactor.
2014-02-23 18:44:23 -05:00
Adrian Cole
40c952281a Merge pull request #558 from square/jwilson_0223_test_cleanup
Use OkBuffer in Http20Draft09Test.
2014-02-23 15:41:09 -08:00
jwilson
c24e49c442 Use OkBuffer in Spdy3Test. 2014-02-23 18:38:08 -05:00
jwilson
97524fb5c9 Use OkBuffer in Http20Draft09Test. 2014-02-23 18:33:15 -05:00
Jesse Wilson
8e0b862667 Merge pull request #557 from square/jwilson_0223_httpconnection_sink_ii
Use Sink in HttpEngine.
2014-02-23 18:19:33 -05:00
jwilson
84184afdb2 Use Sink in HttpEngine. 2014-02-23 18:13:58 -05:00
Adrian Cole
8858ca8aba Merge pull request #556 from square/jwilson_0223_httpconnection_sink_i
Use BufferedSink in HttpConnection.
2014-02-23 10:07:25 -08:00
jwilson
c16436f8b2 Use BufferedSink in HttpConnection. 2014-02-23 12:55:03 -05:00
Adrian Cole
2ea11f66b8 Merge pull request #555 from square/jwison_0223_buffered_sink_in_spdy
Use BufferedSink in SPDY and HTTP/2.
2014-02-23 09:00:12 -08:00
jwilson
ab78dadb4b Use BufferedSink in SPDY and HTTP/2. 2014-02-23 11:42:59 -05:00
Adrian Cole
877de57447 Merge pull request #554 from square/jwilson_0223_equals_hashcode
More equals, hashCode and toString.
2014-02-23 08:35:45 -08:00
jwilson
ef1fdccbeb More equals, hashCode and toString. 2014-02-23 10:01:51 -05:00
Adrian Cole
0a26d85a55 Merge pull request #553 from square/jwilson_0222_hex
OkBuffer toString and hex.
2014-02-22 13:17:34 -08:00
Jesse Wilson
08ce8f7515 Merge pull request #552 from square/adrian.sync-api
Added blocking alternative to HttpUrlConnection
2014-02-22 16:15:38 -05:00