Jesse Wilson
16f43b6439
Don't log a protocol when it is unknown. ( #3558 )
...
Closes: https://github.com/square/okhttp/issues/3395
2017-08-30 14:04:53 -04:00
jwilson
304d2c9630
[maven-release-plugin] prepare for next development iteration
2017-05-13 10:58:15 -04:00
jwilson
cb981daecf
[maven-release-plugin] prepare release parent-3.8.0
2017-05-13 10:58:04 -04:00
jwilson
011b2ee76d
Import jsr305 and use it to mark @Nullable stuff.
...
This library is a provided dependency and is not necessary to be included
by OkHttp users.
This currently covers the okhttp and okhttp-logging-interceptor modules
only. It does not cover the 'internal' package in OkHttp, or its test cases.
We can add those as needed.
2017-05-06 15:25:55 -04:00
jwilson
6f8cdcca1d
[maven-release-plugin] prepare for next development iteration
2017-04-15 21:53:08 -04:00
jwilson
e56f561e93
[maven-release-plugin] prepare release parent-3.7.0
2017-04-15 21:53:02 -04:00
Jesse Wilson
3e126109c4
Merge pull request #3143 from square/jwilson.0129.bogus_charsets
...
Change MediaType's failure mode to not crash on charset problems.
2017-01-30 09:10:18 -05:00
jwilson
9690110f81
[maven-release-plugin] prepare for next development iteration
2017-01-29 14:14:39 -05:00
jwilson
9dc1bbad24
[maven-release-plugin] prepare release parent-3.6.0
2017-01-29 14:14:33 -05:00
jwilson
6651a9c15e
Change MediaType's failure mode to not crash on charset problems.
...
As-is it throws unchecked exceptions on unexpected charsets. This is a problem
because it can cause a misbehaving webserver to crash the client.
I don't expect this to break existing clients; returning 'null' has always
been a possibility; it's just returned in more cases.
2017-01-29 13:46:30 -05:00
jwilson
29f69277ea
[maven-release-plugin] prepare for next development iteration
2016-12-01 12:53:49 -05:00
jwilson
366bc4752b
[maven-release-plugin] prepare release parent-3.5.0
2016-12-01 12:53:45 -05:00
jwilson
f85cae7f0d
[maven-release-plugin] prepare for next development iteration
2016-07-08 22:39:32 -04:00
jwilson
ee2b9a2917
[maven-release-plugin] prepare release parent-3.4.0
2016-07-08 22:39:28 -04:00
Frieder Bluemle
f4f5ca9a8d
Fix logging-interceptor Javadoc typo
2016-07-05 19:08:16 +08:00
jwilson
7e773f39f9
[maven-release-plugin] prepare for next development iteration
2016-07-02 23:18:34 -04:00
jwilson
9db491924a
[maven-release-plugin] prepare release parent-3.4.0-RC1
2016-07-02 23:18:29 -04:00
jwilson
a4d3082d2f
Run IntelliJ's analysis on OkHttp.
...
This made a few hundred suggestions, many of which are thoughtful but
I'm deliberately ignoring anyway.
The following fixes are good ideas.
2016-06-27 00:47:50 -04:00
jwilson
c5187583bb
Add connection, cache, and platform subpackages.
2016-06-26 23:04:30 -04:00
jwilson
e3b3180f9c
Split HttpEngine into 3 interceptors.
...
BridgeInterceptor does some basic header management and implements gzip
on responses.
CacheInterceptor implements HTTP response caching.
ConnectInterceptor takes the StreamAllocation that's already allocated
and uses it to create an HttpStream.
2016-06-26 10:27:34 -04:00
jwilson
7a807aff6f
[maven-release-plugin] prepare for next development iteration
2016-05-28 14:11:55 -04:00
jwilson
358d96c5fb
[maven-release-plugin] prepare release parent-3.3.1
2016-05-28 14:11:52 -04:00
jwilson
8271dc0fb1
Fix HttpLoggingInterceptor to be cool with newlines.
...
Unfortunately our plaintext detector treats \r and \n as non-plaintext
characters, and they're completely fine.
Closes: https://github.com/square/okhttp/issues/2579
2016-05-28 10:49:31 -04:00
jwilson
16aed96a35
[maven-release-plugin] prepare for next development iteration
2016-05-24 22:12:31 -04:00
jwilson
b031042e67
[maven-release-plugin] prepare release parent-3.3.0
2016-05-24 22:12:28 -04:00
Andy Dennie
f1dea26fd6
update Logging Interceptor to log connection failures
2016-05-14 13:21:09 -04:00
Jake Wharton
276ef646cd
Merge pull request #2544 from square/jwilson.0508.no_synthetic_headers
...
Promote sent and received timestamps to fields on Response.
2016-05-09 00:03:38 -04:00
jwilson
bab8943f2b
Promote sent and received timestamps to fields on Response.
...
I'm currently keeping these as longs. That's easy an unambiguous, but it also
feels rather primitive.
This was more work than I expected, but it doesn't seem particularly risky.
It's also potentially more efficient, since there's fewer places where we're
converting from string to long and vice versa.
Closes: https://github.com/square/okhttp/issues/2035
2016-05-08 15:25:56 -04:00
jwilson
4f24a30c12
Make logging more consistent throughout OkHttp.
...
Avoid using System.out.
Use the best logging implementation on the host platform. On Java this is
java.util.logging. On Android it's Android.util.Log.
Closes https://github.com/square/okhttp/issues/2505
2016-05-07 21:08:37 -04:00
Alex Wegener
e0c2795bae
Log plain text bodies only
2016-03-03 21:55:25 -05:00
jwilson
c293aecd28
[maven-release-plugin] prepare for next development iteration
2016-02-25 20:54:11 -05:00
jwilson
14eb077351
[maven-release-plugin] prepare release parent-3.2.0
2016-02-25 20:54:08 -05:00
jwilson
ac4aea6a52
[maven-release-plugin] prepare for next development iteration
2016-02-10 08:37:54 -05:00
jwilson
9aa5e87a2c
[maven-release-plugin] prepare release parent-3.1.2
2016-02-10 08:37:52 -05:00
jwilson
ef1dbe1297
[maven-release-plugin] prepare for next development iteration
2016-02-07 22:10:22 -05:00
jwilson
0cd6b186b1
[maven-release-plugin] prepare release parent-3.1.1
2016-02-07 22:10:19 -05:00
jwilson
50395f9b6a
[maven-release-plugin] prepare for next development iteration
2016-02-06 12:59:27 -05:00
jwilson
519ec8adca
[maven-release-plugin] prepare release parent-3.1.0
2016-02-06 12:59:23 -05:00
Dave Roberge
fc238a225d
Handle UnsupportedCharsetException in HttpLoggingInterceptor
2016-01-16 15:32:09 -05:00
gkimbwala
c3f8dcb22e
Add Framed protocol to connections
2016-01-15 17:58:03 -08:00
jwilson
9b0706489c
[maven-release-plugin] prepare for next development iteration
2016-01-14 16:03:12 -08:00
jwilson
bdbb3ad03c
[maven-release-plugin] prepare release parent-3.0.1
2016-01-14 16:03:08 -08:00
jwilson
c4dc8725fb
Revert "Make OkHttp OSGi ready"
...
This reverts commit 2b29196ee2 .
2016-01-14 15:44:21 -08:00
jwilson
2dc79e01e1
[maven-release-plugin] prepare for next development iteration
2016-01-13 14:12:19 -08:00
jwilson
c9b812a4ab
[maven-release-plugin] prepare release parent-3.0.0
2016-01-13 14:12:09 -08:00
Jeff Gilfelt
bf6c11f753
Use charset specified by the request body content type
2016-01-09 11:50:41 +00:00
Jung KyungHo
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
Jung KyungHo
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
Jesse Wilson
3774437890
Merge pull request #2192 from lburgazzoli/okhttp-osgi
...
Make OkHttp OSGi ready
2016-01-06 00:32:38 -05:00
lburgazzoli
2b29196ee2
Make OkHttp OSGi ready
2016-01-05 09:22:11 +01:00