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

684 Commits

Author SHA1 Message Date
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
Jesse Wilson
f32f997bdc Merge pull request #445 from square/jw/fat-jar
Ship a fat jar for MockWebServer.
2014-01-14 15:07:10 -08:00
Jake Wharton
b7a07f0fe1 Ship a fat jar for MockWebServer. 2014-01-14 14:59:03 -08:00
Jake Wharton
70c2f68e68 Merge pull request #443 from square/jwilson_0113_job_recover
Recover from connectivity problems in the async API.
2014-01-13 20:15:58 -08:00
jwilson
8972a94aee Recover from connectivity problems in the async API.
This promotes HTTP engine failure recovery from HttpURLConnectionImpl
to HttpEngine. That has the nice side-effect of getting to hide some
more implementation details in HTTP engine.
2014-01-13 23:10:47 -05:00
Jake Wharton
de84b282e8 Merge pull request #440 from square/jwilson_0112_alpn
Support ALPN on Android 4.4+.
2014-01-12 19:48:05 -08:00
jwilson
a8e2f930ea Support ALPN on Android 4.4+.
ALPN is the successor to NPN. When it's widely deployed we
can drop support for NPN altogether.

Verified manually on my Android device against https://gmail.com
(which uses ALPN) and https://twitter.com (which uses NPN only).

https://github.com/square/okhttp/issues/128
2014-01-12 22:39:09 -05:00
Adrian Cole
0c008f34b1 Merge pull request #439 from square/jwilson_0112_flatten_android
Flatten Android platforms.
2014-01-12 18:47:22 -08:00
jwilson
5c84000ca3 Flatten Android platforms.
In preparation for addition of ALPN, which would add a
third class, where inheritance starts to break.
2014-01-12 21:37:06 -05:00
Marcelo Cortes
8d9c85bcb3 Merge pull request #435 from square/jwilson_0112_latest_vogar
Update steps to run tests on-device.
2014-01-12 08:13:10 -08:00
jwilson
c05cb7e93c Update steps to run tests on-device. 2014-01-12 11:13:21 -05:00
Marcelo Cortes
77368806f3 Merge pull request #434 from intrications/patch-1
Correct spelling mistake in change log.
2014-01-12 07:50:01 -08:00
Marcelo Cortes
c4696e8ee0 Merge pull request #432 from square/jwilson_0112_threadnames
Use thread names everywhere.
2014-01-12 07:45:40 -08:00
Michael Basil
c05949c483 Correct spelling mistake in change log. 2014-01-12 15:14:55 +00:00
jwilson
749a65b776 Use thread names everywhere.
Sometimes we name a thread both via its ExecutorService
and via a NamedRunnable. The ExecutorService thread needs
to be named because threads are cached and will be visible
in a thread dump even when no runnables are running.

NamedRunnables are also used because they provide additional
context: the host or URL being serviced by a thread.
2014-01-12 09:47:56 -05:00
Jake Wharton
faea360ddf Toward a 2.0! 2014-01-11 18:59:47 -08:00
Jake Wharton
f7af480a06 Update change log for cherry-picked commits.
(cherry picked from commit 43fbe22f0f)
2014-01-11 18:46:19 -08:00
Adrian Cole
9be60ae66e Merge pull request #428 from adriancole/hpack-huffman
Implement huffman decoding using code from twitter/hpack
2014-01-11 14:22:22 -08:00
Adrian Cole
1b8a7c02bf implement huffman decoding using code from twitter/hpack 2014-01-11 14:07:21 -08:00
Jesse Wilson
40a8d2ee3a Merge pull request #431 from square/jwilson_0111_cache_control
New CacheControl class.
2014-01-11 14:03:02 -08:00
jwilson
684aa14bca New CacheControl class.
This moves cache control headers from the main request
and response classes to their own class.
2014-01-11 15:37:10 -05:00
Jesse Wilson
8e4c591f57 Merge pull request #430 from square/jwilson_0111_timely_stream_discarding
Fix a bug where discardStream took way too long.
2014-01-11 10:38:02 -08:00
jwilson
c6888734b4 Fix a bug where discardStream took way too long.
We were relying on the socket timeout of a single read,
but performing multiple reads each with independent
timeouts.
2014-01-11 13:37:48 -05:00
Jake Wharton
796467b438 Update change log. 2014-01-11 00:28:37 -08:00
Adrian Cole
6727caa032 Merge pull request #427 from square/jwilson_0109_more_docs
Small docs fixes. Remove OkHttp 2 warnings.
2014-01-10 07:57:06 -08:00
jwilson
9eb276043f Small docs fixes. Remove OkHttp 2 warnings. 2014-01-10 10:01:32 -05:00
Adrian Cole
81c99d24c9 Merge pull request #425 from square/jwilson_0109_retransmit
Test that POST bodies are retransmitted on redirect.
2014-01-09 21:02:40 -08:00
jwilson
8acdabd3b3 Test that POST bodies are retransmitted on redirect. 2014-01-09 22:18:36 -05:00