1
0
mirror of https://github.com/square/okhttp.git synced 2026-01-25 16:01:38 +03:00
Commit Graph

711 Commits

Author SHA1 Message Date
Adrian Cole
ac584820ea Merge pull request #472 from adriancole/backfill-data-test
Backfilled http/2 data frame test and clarified comments.
2014-01-21 21:25:08 -08:00
Jake Wharton
f18ede8f9c Merge pull request #474 from square/jwilson_0121_gzip
Don't unzip if there isn't a response body.
2014-01-21 19:51:46 -08:00
jwilson
97741e94fb Don't unzip if there isn't a response body.
https://github.com/square/okhttp/issues/358
2014-01-21 22:47:50 -05:00
Adrian Cole
ded437b77a Backfilled http/2 data frame test and clarified comments. 2014-01-21 22:43:31 +01:00
Adrian Cole
2014031429 Merge pull request #471 from adriancole/http2-ping
Enable ping for http/2
2014-01-21 11:47:34 -08:00
Adrian Cole
5dc83fd2b8 Enable ping for http/2 2014-01-21 19:59:05 +01:00
Adrian Cole
d4a02682bf Merge pull request #470 from adriancole/push-promise
Push promise
2014-01-21 08:45:54 -08:00
Adrian Cole
4a62aef3f8 Basic support for reading and writing http/2 push promise frames. 2014-01-21 17:43:41 +01:00
Adrian Cole
47c640a1a4 Merge pull request #469 from adriancole/header-continuation-fix
Fix header frame processing in http/2
2014-01-21 08:36:56 -08:00
Adrian Cole
f214cf9670 Framing of headers blocks happen after compression. 2014-01-21 17:27:22 +01:00
Adrian Cole
0c5b5454bc Read priority flag on http/2 headers frame. 2014-01-21 17:27:21 +01:00
Jesse Wilson
7260ffab9b Merge pull request #468 from adriancole/test-enable-push-flag
Correct and backfill tests for default http/2 push setting.
2014-01-20 20:53:02 -08:00
Adrian Cole
9110ef83bf Correct and backfill tests for default http/2 push setting. 2014-01-20 14:17:35 -08:00
Adrian Cole
e65221c543 Merge pull request #466 from adriancole/schedule-hpack-change
Clarify action taken when hpack reader applies new header table size.
2014-01-20 13:43:55 -08:00
Adrian Cole
4fa9814e30 Clarify action taken when hpack reader applies new header table size. 2014-01-20 12:52:48 -08:00
Jesse Wilson
c2f5b4728d Merge pull request #467 from adriancole/fix-eq
Fix bug in ByteString.equalsAscii when param is null and ByteString not yet initialized.
2014-01-20 11:35:53 -08:00
Adrian Cole
65ed03e0a0 Fix bug in ByteString.equalsAscii when param is null and ByteString not yet initialized. 2014-01-20 11:06:44 -08:00
Jesse Wilson
aa907e2de9 Merge pull request #465 from square/jwilson_0119_imports
Drop obsolete imports.
2014-01-19 20:59:09 -08:00
jwilson
3a21915069 Drop obsolete imports.
These crept in after rebase.
2014-01-19 23:53:16 -05:00
Jesse Wilson
14e87e8d8a Merge pull request #461 from square/jwilson_0119_more_cache_headers
Move more cache headers out of public API.
2014-01-19 20:49:50 -08:00
Adrian Cole
132c459c5a Merge pull request #462 from adriancole/bytestring-eqic
Change spdy and http/2 headers to always lowercase
2014-01-19 20:22:57 -08:00
jwilson
c1458f74d8 Move more cache headers out of public API. 2014-01-19 23:19:14 -05:00
Adrian Cole
4a627bb009 Change spdy and http/2 headers to always lowercase. Introduce allocation-free ByteString.equalsAscii. 2014-01-19 20:18:49 -08:00
Adrian Cole
436d91d347 Merge pull request #464 from square/jwilson_0119_fix_race
Synchronize when acking settings.
2014-01-19 20:15:53 -08:00
jwilson
27463b509f Synchronize when acking settings.
Without this tests fail.
2014-01-19 23:08:27 -05:00
Adrian Cole
3e63e7a5e4 Merge pull request #460 from adriancole/header-entry
Reduce duplication around ascii header names.  Do not emit :version in http/2.
2014-01-19 10:46:04 -08:00
Adrian Cole
b95a0ccbca Top-level immutable, internal HeaderEntry class to reduce duplication around header names. Do not emit :version in http/2. 2014-01-19 10:35:34 -08:00
Adrian Cole
01ac1019bb Merge pull request #459 from square/jwilson_0119_icy
Permit status lines like 'ICY 200 OK'
2014-01-19 08:49:04 -08:00
jwilson
9c15cba43d Permit status lines like 'ICY 200 OK' 2014-01-19 11:25:02 -05:00
Jesse Wilson
35b30f943f Merge pull request #458 from adriancole/variable-bitset
Reduce allocation for HPACK decompression
2014-01-19 06:16:59 -08:00
Adrian Cole
8da2510c3c Reduce allocation for HPACK decompression. 2014-01-18 23:37:28 -08:00
Adrian Cole
ebae67db86 Merge pull request #457 from adriancole/hpack-toggle
In HPACK, specifying the index of an referenced entry dereferences it.
2014-01-18 21:23:01 -08:00
Adrian Cole
7fccb687b2 In HPACK, specifying the index of an referenced entry dereferences it. 2014-01-18 21:20:13 -08:00
Jesse Wilson
1c71c90593 Merge pull request #456 from adriancole/read-settings
Settings: Wiring, Variant-specific defaults, and HTTP/2 acks
2014-01-18 21:13:21 -08:00
Adrian Cole
ef30f7efc6 Extract default settings to variants. Read windowSize (spdy/3) and headerTableSize (http/2) from peer. 2014-01-18 20:46:50 -08:00
Jesse Wilson
04bd1ad5a6 Merge pull request #455 from adriancole/client-npn
Fix JettyNpnProvider.invoke() to pick the right protocol
2014-01-18 11:06:42 -08:00
Jesse Wilson
7b340752a6 Merge pull request #454 from square/jwilson_0118_spdy_caches
Cache SPDY responses even if the body isn't fully consumed.
2014-01-18 10:38:33 -08:00
Adrian Cole
5843bd35bd fix #447: Fix JettyNpnProvider.invoke() to pick the right protocol 2014-01-18 10:31:28 -08:00
Adrian Cole
bfa2788032 fix #447: Fix JettyNpnProvider.invoke() to pick the right protocol 2014-01-18 09:52:20 -08:00
jwilson
f6f3497ef7 Cache SPDY responses even if the body isn't fully consumed.
https://github.com/square/okhttp/issues/450
2014-01-18 12:24:47 -05:00
Jesse Wilson
2a5b9562d2 Merge pull request #452 from adriancole/hpack-gt-64
Support more than 64 referenced headers in HPACK
2014-01-17 15:03:13 -08:00
Adrian Cole
04e1002ad1 Support more than 64 referenced headers in HPACK. 2014-01-17 13:53:13 -08:00
Adrian Cole
b50c9c6540 Merge pull request #453 from square/jw/bit-array
Introduce BitArray, a simple BitSet clone that supports shifting.
2014-01-17 13:17:11 -08:00
Jake Wharton
ce40dc702d Introduce BitArray, a simple BitSet clone that supports shifting. 2014-01-17 12:05:55 -08:00
Jesse Wilson
92d38450d7 Merge pull request #438 from adriancole/consolidate-protocol
consolidate protocol constants
2014-01-17 09:01:24 -08:00
Adrian Cole
9766de54dc consolidate protocol constants 2014-01-16 08:39:31 -08:00
Jesse Wilson
fdafbbb934 Merge pull request #448 from square/jwilson_0115_tls_modes
Don't attempt TLS modes we know will fail.
2014-01-16 06:17:51 -08:00
jwilson
46a0852c20 Don't attempt TLS modes we know will fail.
https://github.com/square/okhttp/issues/442
2014-01-16 08:28:02 -05:00
Jesse Wilson
295a2e4e7e Merge pull request #446 from square/jw/everything-is-java6-now
Drop explicit and now duplicate Java 6 enforcement.
2014-01-14 15:17:03 -08:00
Jake Wharton
fb21058af3 Drop explicit and now duplicate Java 6 enforcement.
The root pom now enforces Java 6 across the entire project so there is no need to explicitly enable it for MockWebServer.
2014-01-14 15:15:48 -08:00