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

460 Commits

Author SHA1 Message Date
Jake Wharton
db3b3f4d2a [maven-release-plugin] prepare for next development iteration 2013-08-12 00:01:30 -07:00
Jake Wharton
f7699d9243 [maven-release-plugin] prepare release parent-1.2.0 parent-1.2.0 2013-08-12 00:01:26 -07:00
Jake Wharton
f6ec6f74ba Add jar-with-dependencies for the main artifact. 2013-08-11 23:55:03 -07:00
Jake Wharton
bc3aa64462 Revert "[maven-release-plugin] prepare release parent-1.2"
This reverts commit ad928c668d.
2013-08-11 23:45:35 -07:00
Jake Wharton
490019163f Update checkstyle stuffs. 2013-08-11 23:43:03 -07:00
Jake Wharton
9ddc3d75de Only exclude Javadoc from 'internal' package in the main artifact. 2013-08-11 23:42:55 -07:00
Jake Wharton
542a2912b2 Eleven. 2013-08-11 20:21:05 -07:00
jwilson
3626d69813 [maven-release-plugin] prepare for next development iteration 2013-08-11 10:30:12 -04:00
jwilson
ad928c668d [maven-release-plugin] prepare release parent-1.2 2013-08-11 10:30:06 -04:00
Jesse Wilson
e93511be34 Merge pull request #275 from square/jwilson/gzip_304
Test gzipped HTTP 304 response bodies
2013-08-10 13:52:05 -07:00
Jesse Wilson
17e54c0554 Merge pull request #276 from square/jwilson/prepare_okhttp_1_2
Prepare for OkHttp 2.0.
2013-08-10 13:51:46 -07:00
jwilson
e7d13c4802 Prepare for OkHttp 1.2.
Hide the async APIs (package-private), moving test code to
the same package as necessary.

Also write release notes.
2013-08-10 16:50:31 -04:00
jwilson
efc95d993f Test gzipped HTTP 304 response bodies 2013-08-10 08:42:14 -04:00
Jake Wharton
6e6b4152b7 Merge pull request #267 from square/jwilson/style
Use the OkHttp code style in MockWebServer
2013-08-05 16:28:29 -07:00
jwilson
d5ab35a272 Use the OkHttp code style in MockWebServer 2013-08-05 19:00:51 -04:00
Jesse Wilson
84e0b4875a Merge pull request #266 from square/jwilson/kill_mock_spdy_server
Teach MockWebServer SPDY.
2013-08-05 15:33:22 -07:00
jwilson
00a50d1919 Teach MockWebServer SPDY.
Kill MockSpdyServer in the process.
2013-08-05 18:32:54 -04:00
Jesse Wilson
894743dd5c Merge pull request #263 from square/jwilson/import_mockwebserver
Import mockwebserver from code.google.com.
2013-08-05 15:05:17 -07:00
jwilson
8535f2447c Repackage mockwebserver in com.squareup.okhttp.mockwebserver. 2013-08-05 18:04:25 -04:00
jwilson
8508ae98fd Merge branch 'mockwebserver' into jwilson/import_mockwebserver 2013-08-04 09:03:29 -04:00
jwilson
6010229378 Imported mockwebserver source into mockwebserver/ 2013-08-04 09:03:08 -04:00
Jesse Wilson
df815ef924 Merge pull request #261 from square/jwilson/home_for_mockwebserver
Make a home for MockWebServer in OkHttp.
2013-08-03 14:48:06 -07:00
jwilson
3c0faa9ca1 Make a home for MockWebServer in OkHttp.
To build HTTP/2.0 support into OkHttp I'm going to simultaneously
build HTTP/2.0 support into MockWebServer. To make that possible,
I'm first going to fork MockWebServer and then combine it with
MockSpdyServer.
2013-08-03 12:50:04 -04:00
Jesse Wilson
cc46339438 Merge pull request #255 from square/jwilson/spdy_layering
Fix a bug in SPDY plus HTTP caching.
2013-07-20 11:14:36 -07:00
jwilson
c2366b7658 Fix a bug in SPDY plus HTTP caching.
With spdy/3 the built-in headers were renamed from 'status'
to ':status' and 'version' to ':version'. This caused the
response cache to break, since it was parsing lines like
':status: 200 OK' by splitting on the first colon.

The fix drops these synthetic headers as soon as they're
received; converting them to the HTTP form immediately.
2013-07-20 14:14:14 -04:00
Jesse Wilson
4b70a92728 Merge pull request #254 from square/jwilson/warpspins_isalive_detector
More aggressive heuristics on pooled connections.
2013-07-20 08:15:01 -07:00
jwilson
de1b5f244d More aggressive heuristics on pooled connections.
These are only turned on for non-GET requests. This
replaces the RetryableOutputStream mechanism, which
was causing problems for clients whose POSTs weren't
idempotent.
2013-07-20 11:13:51 -04:00
Jesse Wilson
abc8c9a30b Merge pull request #250 from kriswuollett/apache_client_contentType
Added check for length < 0 for transparent gzip response.
2013-07-12 05:24:45 -07:00
Kristopher Wuollett
a87b569d01 Added check for length < 0 for transparent gzip response.
The documentation for org.apache.http.HttpEntity::getContentLength()
states that a negative number will be returned when the length of the
content is not known.
2013-07-12 00:06:21 -07:00
Jake Wharton
3e7ffd60ff Merge pull request #249 from kriswuollett/website_index_trailing_whitespace
Removed trailing whitespace in website/index.html.
2013-07-11 23:42:04 -07:00
Kristopher Wuollett
c7a90b13f2 Removed trailing whitespace in website/index.html.
Made the empty line consistent with the others in the html file.
2013-07-11 23:32:28 -07:00
Jake Wharton
8e5eab2373 Merge pull request #248 from kriswuollett/apache_client_contentType
Added contentType/Encoding to HttpResponse's Entity.
2013-07-11 23:30:11 -07:00
Kristopher Wuollett
8035fda72f Added contentType/Encoding to HttpResponse's Entity.
Clients should expect that OkHttpClient HttpResponse Entity's contentType
and contentEncoding are not null when the headers are present.
2013-07-11 23:02:47 -07:00
Jake Wharton
4a13338569 Merge pull request #247 from square/jwilson/new_ioe
Don't use IOException APIs not in Gingerbread
2013-07-11 21:44:32 -07:00
jwilson
ef09f798a3 Don't use IOException APIs not in Gingerbread 2013-07-12 00:43:03 -04:00
Jesse Wilson
452afb381a Merge pull request #246 from kriswuollett/no_fin_on_closed_stream
Stopped sending final empty frame on stream initiated in sender half-closed state.
2013-07-11 21:36:30 -07:00
Kristopher Wuollett
63508d956a Stopped sending empty frame on stream initiated in sender half-closed state.
The SPDY protocol states the sender of FLAG_FIN must not send further frames
on that stream.  This change skips the sending of a final (empty) frame with
FLAG_FIN set when the stream is already half-closed because SYN_STREAM was
sent with FLAG_FIN set.
2013-07-11 16:03:33 -07:00
Jake Wharton
0b4b3c46be Merge pull request #245 from kriswuollett/checkstyle_platform_java
Removed trailing whitespace in Platform.
2013-07-11 13:29:00 -07:00
Kristopher Wuollett
6cb214f0f4 Removed trailing whitespace in Platform. 2013-07-11 13:03:14 -07:00
Jesse Wilson
142b707313 Merge pull request #244 from narayank/master
Catch SecurityExceptions from socket connects.
2013-07-11 05:28:10 -07:00
Narayan Kamath
d66810bf0e Catch SecurityExceptions from socket connects.
Versions of android prior to 4.3 would throw RTEs
if the underlying socket threw an EACCES error.

See change 50144 on the Android Open Source Project.
2013-07-11 11:39:24 +01:00
Jesse Wilson
9a63d68b04 Merge pull request #243 from kkocel/patch-1
Fixed Alcatel getByInetAddress bug.
2013-07-09 04:06:15 -07:00
Christopher Kocel
7e3e8bb8c5 Fixed Alcatel ``getByInetAddress`` bug.
Added catch for NullPointerException. I wish it was java7 when You could catch multiple exceptions ...
2013-07-09 10:45:34 +02:00
Jake Wharton
64e58d4ed0 Merge pull request #241 from square/jwilson/introduce_policy
Introduce a Policy interface between engine and connection.
2013-07-09 00:25:47 -07:00
jwilson
5f87fc19ab Introduce a Policy interface between engine and connection.
This breaks the direct dependency from HttpEngine to
HttpURLConnectionImpl. With this dependency broken, we
can start to use HttpEngine directly from Dispatcher and
Job.
2013-07-09 01:57:50 -04:00
Jesse Wilson
13f46339d9 Merge pull request #238 from square/jwilson/long_length
Support streaming request bodies longer than 2 GiB.
2013-07-08 22:55:41 -07:00
jwilson
c2da9cc645 Support streaming request bodies longer than 2 GiB.
This uses a new API only available in Java 1.7 and
better.
2013-07-09 01:54:15 -04:00
Jesse Wilson
cc59ecd578 Merge pull request #239 from square/jwilson/refactor_to_client
Push state from HttpURLConnectionImpl to OkHttpClient
2013-07-08 21:21:26 -07:00
jwilson
39b3b59f6f Push state from HttpURLConnectionImpl to OkHttpClient
We aren't going to use HttpURLConnectionImpl for
requests with the new API.

This is safe because we always do a shallow copy of
the OkHttpClient before using it to create a
HttpURLConnectionImpl.
2013-07-08 18:29:06 -04:00
Jesse Wilson
76d3637d47 Merge pull request #237 from square/jwilson/request_bodies
Add factory methods to create request bodies
2013-07-05 18:03:42 -07:00