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

210 Commits

Author SHA1 Message Date
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
jwilson
045867ef5d Update checkstyle.xml and fix problems 2013-01-31 18:37:46 -05:00
Marcelo Cortes
57cc094713 Merge pull request #96 from square/jwilson/mecharefactor
Mechanically change OkHttp to Square's Java style.
2013-01-31 14:58:07 -08:00
jwilson
2d45a13249 Mechanically change OkHttp to Square's Java style. 2013-01-31 17:36:19 -05:00
Marcelo Cortes
2d2ceffe25 Merge pull request #94 from square/marcelo/pool
Improvements to connection pool
2013-01-31 14:24:48 -08:00
Marcelo Cortes
6f6d959fda Improvements to connection pool 2013-01-31 17:23:06 -05:00
Jake Wharton
83de4eb552 Merge pull request #93 from square/jwilson/redirects
Follow up to 20 redirects.
2013-01-30 21:55:45 -08:00
jwilson
49082196be Follow up to 20 redirects. 2013-01-31 00:53:58 -05:00
Jake Wharton
4b7a40598c Merge pull request #92 from square/jwilson/ignore_racy_test
Mark a racy test with @Ignore.
2013-01-30 21:18:32 -08:00
jwilson
5bfe7124f6 Mark a racy test with @Ignore.
We've seen this fail consistently on Travis, and very rarely
on my desktop. Ignore it until it can be investigated fully.

https://github.com/square/okhttp/issues/90
2013-01-31 00:11:43 -05:00
Jake Wharton
72cdfed12d Merge pull request #91 from square/jwilson/redirect_retry
Retry if a request fails after a redirect.
2013-01-30 21:10:02 -08:00
jwilson
637783ce8a Retry if a request fails after a redirect.
https://code.google.com/p/android/issues/detail?id=41576
2013-01-31 00:05:20 -05:00
Jake Wharton
fc232eb27c Merge pull request #89 from square/jwilson/cookies
Fix cookies for SPDY transport.
2013-01-23 09:02:59 -08:00
jwilson
989652fe06 Fix cookies for SPDY transport. 2013-01-23 11:43:23 -05:00