1
0
mirror of https://github.com/square/okhttp.git synced 2025-11-27 18:21:14 +03:00
Commit Graph

24 Commits

Author SHA1 Message Date
jwilson
02d6b4e78c Drop the get prefix on Connection accessors. 2015-12-21 21:10:48 -05:00
jwilson
ce3e7c40ff Change groupid to com.squareup.okhttp3. 2015-12-16 19:40:48 -05:00
jwilson
c9a89876de Rename com.squareup.okhttp to okhttp3
Maven group changes will come in follow up.
2015-12-16 01:34:59 -05:00
Jake Wharton
c642bea938 Remove Request#urlString(), just use url().toString(). 2015-12-15 00:33:09 -05:00
Adam Stroud
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
Jake Wharton
93d547dcda Make HttpUrl the blessed URL method of Request. 2015-12-14 15:11:48 -05:00
jwilson
b809280b16 [maven-release-plugin] prepare for next development iteration 2015-12-13 20:35:30 -05:00
jwilson
a36b1fb73c [maven-release-plugin] prepare release parent-2.7.0 2015-12-13 20:35:26 -05:00
jwilson
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
jwilson
c071f6fef4 Don't log gzipped data. It isn't human readable. 2015-12-04 22:47:08 -05:00
Jesse Wilson
f8bb4f1420 Merge pull request #2038 from square/jw/getter
Log level getter.
2015-11-24 22:43:53 -05:00
Jake Wharton
ebb0003968 Log the full URL. 2015-11-24 22:20:41 -05:00
Jake Wharton
0fae6bbb50 Log level getter. 2015-11-24 22:14:12 -05:00
Jake Wharton
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
Jake Wharton
8396d21dfa Force logging of headers from the request body. 2015-11-24 20:45:51 -05:00
Jake Wharton
b93104c9e6 Support 204 and 205 'No Content' replies when application interceptor. 2015-11-24 20:28:27 -05:00
Artem Zinnatullin
ee1dee1322 Add null check to HttpLoggingInterceptor.setLevel() 2015-11-23 05:35:43 +03:00
Artem Zinnatullin
c664d1864b Return this from HttpLoggingInterceptor.setLevel() 2015-11-23 00:29:06 +03:00
jwilson
94ca8566b2 [maven-release-plugin] prepare for next development iteration 2015-11-22 12:30:35 -05:00
jwilson
d0a381edc1 [maven-release-plugin] prepare release parent-2.6.0 2015-11-22 12:30:31 -05:00
Jake Wharton
75e69c3f49 Remove double-clone of Buffer. 2015-10-19 17:45:24 -04:00
Jake Wharton
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
Jake Wharton
43be47da69 Use clever buffer/clone trick for duplicate response body. 2015-10-09 11:12:08 -04:00
Jake Wharton
1f0cb4e6b6 Add logging interceptor for simple request and response logging. 2015-09-26 13:59:36 -04:00