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

223 Commits

Author SHA1 Message Date
Jake Wharton
ace08e9f28 Merge pull request #136 from square/jwilson/froyo
Don't use APIs that Froyo doesn't have.
2013-03-31 11:57:47 -07:00
jwilson
d704709fa9 Don't use APIs that Froyo doesn't have. 2013-03-31 14:33:01 -04:00
Jake Wharton
30cb962d9d Merge pull request #135 from square/jwilson/flush
Track DiskLruCache.flush change.
2013-03-30 15:24:56 -07:00
jwilson
e1d6d3d030 Track DiskLruCache.flush change.
Current DiskLruCache version is ebbb058e8226d2c5531bb2d66ff4d41d6edd366c
2013-03-30 18:24:28 -04:00
Jesse Wilson
fe280d5813 Merge pull request #134 from square/jwilson/latest_disklrucache
Use the latest DiskLruCache in OkHttp.
2013-03-30 14:59:53 -07:00
jwilson
c0df29ac0b Use the latest DiskLruCache in OkHttp. 2013-03-30 17:59:14 -04:00
Jake Wharton
595b9a750c Merge pull request #133 from square/jwilson/cache_api
Tidy the public API for HttpResponseCache.
2013-03-30 13:22:58 -07:00
jwilson
621bfd7710 Tidy the public API for HttpResponseCache.
This moves the special internal-only methods into a new interface,
OkHttpResponseCache. I jump through some hoops to expose only the
java.net.ResponseCache interface in the API.
2013-03-30 15:56:11 -04:00
Jake Wharton
2595af3862 Merge pull request #132 from square/jwilson/public_api_for_cache
Provide a non-internal API to the response cache.
2013-03-27 12:27:00 -07:00
jwilson
988f519754 Provide a non-internal API to the response cache.
Currently this is roughed in. Before I can close issue 131
I need to clean up the docs and verify that we aren't leaking
public APIs.

https://github.com/square/okhttp/issues/131
2013-03-27 14:11:26 -04:00
Jake Wharton
2e5f36d339 Merge pull request #130 from square/jw/apache
Add Apache HttpClient implementation which maps to OkHttp.
2013-03-27 00:29:23 -07:00
Jake Wharton
d60c084b99 Add Apache HttpClient implementation which maps to OkHttp.
Refs #17.
2013-03-26 13:27:46 -04:00
Jesse Wilson
36b6980e23 Merge pull request #129 from square/jw/modules
Move library into a module. Introduce sample module with simple GitHub c...
2013-03-25 21:27:02 -07:00
Jake Wharton
7ccbf48838 Move library into a module. Introduce sample module with simple GitHub client. 2013-03-25 20:04:51 -07:00
Jesse Wilson
ba2b7432cb Merge pull request #127 from narayank/master
Guard against invalid name value block headers.
2013-03-15 07:39:21 -07:00
Narayan Kamath
2f1629d593 Merge branch 'master' of https://github.com/narayank/okhttp 2013-03-12 17:10:27 +00:00
Narayan Kamath
780a2cbd70 Guard against invalid name value block headers.
If a badly behaved server sends us a negative number
of name value blocks, we should throw an IOException and
not a RTE (which will be thrown when we try to construct an
ArrayList with a negative size).
2013-03-12 16:56:28 +00:00
Jesse Wilson
0100630551 Merge pull request #125 from iosphere/android-41739
Add support for following HTTP 307 temporary redirects.
2013-02-28 12:48:05 -08:00
Jesse Wilson
9c330d70a7 Merge pull request #126 from square/edenman/seriously-froyo
Fix froyo bug: no more descendingIterator
2013-02-27 16:23:16 -08:00
Eric Denman
f373e2d6e5 Fix froyo bug: no more descendingIterator 2013-02-27 16:19:47 -08:00
Christopher Orr
0665b628fa Add support for following HTTP 307 temporary redirects.
Fixes Android bug 41739.
2013-02-27 19:09:12 +01:00
Jesse Wilson
f24072ec6b Merge pull request #124 from square/jw/eviction
Add evictAll method to connection pool.
2013-02-27 08:59:17 -08:00
Jake Wharton
220b5f9a3b Add evictAll method to connection pool.
Closes #104.
2013-02-27 08:31:04 -08:00
Jesse Wilson
91db9299c3 Merge pull request #123 from square/jw/test-fixes
Ensure we test the correct connection instance.
2013-02-21 01:20:01 -08:00
Jesse Wilson
1c5990e4c1 Merge pull request #122 from square/jw/response-source-header
Add new synthetic header for determining response source.
2013-02-21 01:19:28 -08:00
Jake Wharton
5a4c7c34af Add new synthetic header for determining response source. 2013-02-21 00:30:26 -08:00
Jake Wharton
2aaf055b3d Ensure we test the correct connection instance. 2013-02-21 00:19:44 -08:00
Jesse Wilson
4b7e0b733f Merge pull request #121 from narayank/master
Fix a null pointer exception in SpdyTransport#makeReusable
2013-02-20 09:08:59 -08:00
Narayan Kamath
36c0a8048a Fix NPE in SpdyTransport#makeReusable 2013-02-20 15:43:12 +00:00
Jesse Wilson
65ebcbdea5 Merge pull request #120 from square/jwilson/protocolredirects
Optionally follow redirects from HTTPS to HTTP and vice versa.
2013-02-18 22:35:37 -08:00
jwilson
38575673e4 Optionally follow redirects from HTTPS to HTTP and vice versa.
The API is imperfect because HttpURLConnection doesn't expose
any SSL information, and because HttpsURLConnection won't necessarily
have a secure final request.
2013-02-18 04:18:53 -05:00
Jesse Wilson
6741a8f51f Merge pull request #119 from square/jwilson/style
Fix checkstyle errors
2013-02-17 13:25:27 -08:00
jwilson
6fe24773ba Fix checkstyle errors 2013-02-17 16:23:52 -05:00
Jesse Wilson
3846741dd3 Merge pull request #118 from square/marcelo/share_spdy_executors
Share thread executors in SpdyConnections
2013-02-14 13:03:39 -08:00
Marcelo Cortes
c4efcd93bb Share thread executors in SpdyConnections 2013-02-14 16:01:04 -05:00
Jesse Wilson
6b1e1b5c59 Merge pull request #117 from square/marcelo/descending_iterator
Use LinkedList.listIterator instead of LinkedList.descendingIterator() f...
2013-02-14 08:49:07 -08:00
Marcelo Cortes
b7b0299795 Use LinkedList.listIterator instead of LinkedList.descendingIterator() for API compatibility 2013-02-14 11:17:10 -05:00
Jesse Wilson
b8b2aa5d26 Merge pull request #107 from square/marcelo/empty_response_message
Handle http status message without leading space when the message is emp...
2013-02-05 11:36:57 -08:00
Marcelo Cortes
c8cd262185 Handle http status message without leading space when the message is empty 2013-02-05 14:35:30 -05:00
Marcelo Cortes
232b64658f Merge pull request #103 from square/jwilson/proxy_double_duty
Don't make the 'proxy' field do double-duty.
2013-02-02 07:08:59 -08:00
jwilson
2bcffdec4c Don't make the 'proxy' field do double-duty.
Previously it was acting as both the user's requested proxy and
also the proxy selector's selection. This breaks down, especially
since redirects permit multiple proxy selections for a single
request.
2013-02-02 09:36:13 -05:00
Jesse Wilson
456801be74 Merge pull request #102 from square/marcelo/version
increased version to 1.0
2013-02-01 12:00:11 -08:00
Marcelo Cortes
fcd40ec711 increased version to 1.0 2013-02-01 14:58:28 -05:00
Marcelo Cortes
2137b7a725 Merge pull request #101 from square/jwilson/comments
Switch to Square style for comments.
2013-02-01 08:17:40 -08:00
jwilson
7e7a3896df Switch to Square style for comments. 2013-02-01 11:13:19 -05:00
Marcelo Cortes
3e44564738 Merge pull request #100 from square/jwilson/longer_recycle_timeouts
Increase the stream drain timeout from 30ms to 100ms.
2013-02-01 08:07:17 -08:00
jwilson
c7751ee158 Increase the stream drain timeout from 30ms to 100ms.
We were missing out on opportunities to reuse HTTPS connections
with the previous timeout. This even occured on unit tests where
the latency should be very low.

https://github.com/square/okhttp/issues/90
2013-02-01 11:02:37 -05:00
Jake Wharton
2a319f7ece Merge pull request #99 from square/jwilson/transparentgzip
Merge: Strip content length in requests with "transparent" gzip handling
2013-02-01 07:14:04 -08:00
jwilson
92fcceedf5 Merge: Strip content length in requests with "transparent" gzip handling
Original AOSP/libcore commit from Brian Carlstrom:
We need to strip both the Content-Length and the Content-Encoding
for such requests. In such requests, it will be the length of the
compressed response. We hide the fact that compression is taking place
from clients, so we shouldn't give them the content length either.

Change-Id: I80713ab33143945c5e2656f478d83cc9e60226a8
2013-02-01 10:08:36 -05:00
Jake Wharton
85e70f17b7 Merge pull request #98 from square/jwilson/mecharefactor
Update checkstyle.xml and fix problems
2013-01-31 15:45:36 -08:00