1
0
mirror of https://github.com/square/okhttp.git synced 2025-07-31 05:04:26 +03:00

247 Commits

Author SHA1 Message Date
ef1dbe1297 [maven-release-plugin] prepare for next development iteration 2016-02-07 22:10:22 -05:00
0cd6b186b1 [maven-release-plugin] prepare release parent-3.1.1 2016-02-07 22:10:19 -05:00
50395f9b6a [maven-release-plugin] prepare for next development iteration 2016-02-06 12:59:27 -05:00
519ec8adca [maven-release-plugin] prepare release parent-3.1.0 2016-02-06 12:59:23 -05:00
fc238a225d Handle UnsupportedCharsetException in HttpLoggingInterceptor 2016-01-16 15:32:09 -05:00
c3f8dcb22e Add Framed protocol to connections 2016-01-15 17:58:03 -08:00
9b0706489c [maven-release-plugin] prepare for next development iteration 2016-01-14 16:03:12 -08:00
bdbb3ad03c [maven-release-plugin] prepare release parent-3.0.1 2016-01-14 16:03:08 -08:00
c4dc8725fb Revert "Make OkHttp OSGi ready"
This reverts commit 2b29196ee2.
2016-01-14 15:44:21 -08:00
2dc79e01e1 [maven-release-plugin] prepare for next development iteration 2016-01-13 14:12:19 -08:00
c9b812a4ab [maven-release-plugin] prepare release parent-3.0.0 2016-01-13 14:12:09 -08:00
bf6c11f753 Use charset specified by the request body content type 2016-01-09 11:50:41 +00:00
469c063135 Update okhttp-loggin-interceptor
I found missed version. It must to include the okhttp '3' on dependency of gradle.
2016-01-08 13:40:40 +09:00
46d0edf4a4 Update okhttp-logging-interceptor README.md
Change how to use on okhttp-loging-interceptor's README.md
2016-01-08 10:54:42 +09:00
3774437890 Merge pull request #2192 from lburgazzoli/okhttp-osgi
Make OkHttp OSGi ready
2016-01-06 00:32:38 -05:00
2b29196ee2 Make OkHttp OSGi ready 2016-01-05 09:22:11 +01:00
8ee07e13d3 Handle unknown content lengths. 2016-01-04 13:10:46 -05:00
a2d9f7cfa9 Adjust documentation for OkHttp 3. 2016-01-02 09:34:47 -05:00
6d1a0b4f96 [maven-release-plugin] prepare for next development iteration 2016-01-02 02:31:17 -05:00
ffc35dbd02 [maven-release-plugin] prepare release parent-3.0.0-RC1 2016-01-02 02:31:14 -05:00
f2461183e8 Refactor towards an OkHttpClient.Builder.
Still some work to do on method naming, but this was the interesting part.
Also very much need to rename OkUrlFactory in tests to urlFactory, otherwise
the client.client stuff becomes madness.
2016-01-01 10:55:32 -05:00
e6dd58a886 Drop the global static shared connection pool.
Instead each new instance of OkHttpClient gets its own connection pool by
default. This makes the OkHttpClient instances a little more heavyweight
(in that two different instances yield two different connection pools, which
means two different cleanup threads) but it also means there's less weird
state sharing between instances.

One drawback of this is that if an application wants to immediately free
resources from an OkHttpClient it must call getConnectionPool().evictAll(),
otherwise the connection pool thread will remain alive for 5 minutes.
2015-12-29 17:49:25 -05:00
98ae0fb92c Sort imports and wrap documentation at 100 columns.
This is a mechanical refactoring. The only thing I had trouble with is IntelliJ's
weak support for <ul> tags in Javadoc.
2015-12-23 19:34:28 -05:00
02d6b4e78c Drop the get prefix on Connection accessors. 2015-12-21 21:10:48 -05:00
ce3e7c40ff Change groupid to com.squareup.okhttp3. 2015-12-16 19:40:48 -05:00
c9a89876de Rename com.squareup.okhttp to okhttp3
Maven group changes will come in follow up.
2015-12-16 01:34:59 -05:00
c642bea938 Remove Request#urlString(), just use url().toString(). 2015-12-15 00:33:09 -05:00
062bb14365 Add URL to HTTP response logging
Add the URL to the HTTP response when it is logged in the same manner
that the URL is added to the request logging. The added logging adds
some additional clarity when reading logs that contain many
request/response pairs.
2015-12-14 15:29:52 -05:00
93d547dcda Make HttpUrl the blessed URL method of Request. 2015-12-14 15:11:48 -05:00
b809280b16 [maven-release-plugin] prepare for next development iteration 2015-12-13 20:35:30 -05:00
a36b1fb73c [maven-release-plugin] prepare release parent-2.7.0 2015-12-13 20:35:26 -05:00
479ea36f8b Fix some stream leaks.
There's a few places where OkHttp could leak a connection that needed to be
closed. With our new connection pool model this is easier to find. This fixes
two specific problems:
 - too many redirects doesn't release the last used connection
 - interceptors that throw runtime exceptions don't release the connection

There are likely more situations. I have hacked together a small little test
harness to make finding these leaks easier; that's not included in this PR.
2015-12-10 00:33:59 -05:00
c071f6fef4 Don't log gzipped data. It isn't human readable. 2015-12-04 22:47:08 -05:00
f8bb4f1420 Merge pull request #2038 from square/jw/getter
Log level getter.
2015-11-24 22:43:53 -05:00
ebb0003968 Log the full URL. 2015-11-24 22:20:41 -05:00
0fae6bbb50 Log level getter. 2015-11-24 22:14:12 -05:00
6fff68b1e9 Remove synthetic protocol header from native API.
Also formalize HttpURLConnection-only 'Response-Source' synthetic header to be on par with the protocol header (which is retained for this legacy interface).
2015-11-24 22:03:35 -05:00
8396d21dfa Force logging of headers from the request body. 2015-11-24 20:45:51 -05:00
b93104c9e6 Support 204 and 205 'No Content' replies when application interceptor. 2015-11-24 20:28:27 -05:00
ee1dee1322 Add null check to HttpLoggingInterceptor.setLevel() 2015-11-23 05:35:43 +03:00
c664d1864b Return this from HttpLoggingInterceptor.setLevel() 2015-11-23 00:29:06 +03:00
94ca8566b2 [maven-release-plugin] prepare for next development iteration 2015-11-22 12:30:35 -05:00
d0a381edc1 [maven-release-plugin] prepare release parent-2.6.0 2015-11-22 12:30:31 -05:00
75e69c3f49 Remove double-clone of Buffer. 2015-10-19 17:45:24 -04:00
8a7516cc66 Remove the need for an explicit Content-Length header to log response body.
This allows chunked responses with no specified length to be logged and have their size reported correctly.
2015-10-19 17:42:18 -04:00
43be47da69 Use clever buffer/clone trick for duplicate response body. 2015-10-09 11:12:08 -04:00
1f0cb4e6b6 Add logging interceptor for simple request and response logging. 2015-09-26 13:59:36 -04:00