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

335 Commits

Author SHA1 Message Date
Jesse Wilson
c84d84d1ca Merge pull request #210 from narayank/master
Fix bad locking in SpdyConnection
2013-06-14 06:50:59 -07:00
Narayan Kamath
06e6beeb3d Fix bad locking in SpdyConnection
This caused an assertion error in SpdyStream#setSettings
where we assert that the lock on the associated
SpdyConnection is held.
2013-06-14 13:49:45 +01:00
Jesse Wilson
cc9e7c7da4 Merge pull request #209 from narayank/master
Ignore null header values.
2013-06-14 05:14:25 -07:00
Narayan Kamath
929a15a55d Ignore null header values.
Required for backwards compatibility. Null headers
throw an RTE (as they should) when they're set internally
or directly on the RawHeaders object.
2013-06-14 12:05:12 +01:00
Jesse Wilson
b48247968a Merge pull request #208 from narayank/master
Allow access to the underlying DiskLruCache.
2013-06-12 07:34:04 -07:00
Narayan Kamath
76eaa1b1bf Allow access to the underlying DiskLruCache.
This is needed to implement public android APIs
android.net.HttpResponseCache.{flush,size,maxSize,close}
as well android.net.HttpResponseCache.install.

install needs to inspect the underlying DiskLruCache because
it promises not to install a new cache if the file directory and
size are the same as the old cache.
2013-06-12 15:26:40 +01:00
Jesse Wilson
e401cacc5f Merge pull request #204 from narayank/master
Support querying & setting transport lists on connections.
2013-06-05 07:07:05 -07:00
Narayan Kamath
4910039a57 Support querying & setting transport lists on connections.
The list is specified via a magic request property
"X-Android-Transports" and can be queried via the request
property "X-Android-Selected-Transport".

System wide defaults / switches don't need any changes
to okhttp. They can be set as options on the OkHttpClient
used by the platform UrlStreamHandlers.
2013-06-05 10:34:09 +01:00
Jesse Wilson
95beef24f0 Merge pull request #201 from kruton/master
Add new classname for AOSP's SSLSocket change
2013-05-30 03:47:43 -07:00
Kenny Root
1192af61fd Add current AOSP class name for OpenSSLSocketImpl
AOSP moved OpenSSLSocketImpl to com.android.org.conscrypt.* so add that
as the first choice for unbundled apps.

Change-Id: I7bad6533dcb86ee1cac3b15f42dd386bd651eaed
2013-05-29 09:44:24 -07:00
Jake Wharton
1e6a33193f Merge pull request #199 from square/jw/null-chick
Null-check request entity since it might not be present.
2013-05-27 14:53:44 -07:00
Jake Wharton
f163915346 Null-check request entity since it might not be present.
Closes #198.
2013-05-27 14:53:16 -07:00
Jesse Wilson
26fc2ff7f9 Merge pull request #197 from square/jw/stay-dead
Correct specialized platform name to Java6.
2013-05-25 01:27:37 -07:00
Jake Wharton
f8d9ec7c31 Correct specialized platform name to Java6.
Also correct end-of-method fallback logic to not check for the presence of the MTU method, it will never be null when code is reached.
2013-05-25 01:21:41 -07:00
Jesse Wilson
f34c1fff7f Merge pull request #194 from candrews/patch-1
Use animal-sniffer to ensure only Java 1.5 is used
2013-05-22 09:58:50 -07:00
Craig
a6d07d9b68 Use animal-sniffer to ensure only Java 1.5 is used 2013-05-21 23:17:07 -04:00
Jake Wharton
5bb8d57ffb Fix comment color. 2013-05-13 17:16:16 -07:00
Jake Wharton
1482bc4032 [maven-release-plugin] prepare for next development iteration 2013-05-11 20:56:21 -07:00
Jake Wharton
34049c1c0f [maven-release-plugin] prepare release parent-1.0.2 parent-1.0.2 2013-05-11 20:56:12 -07:00
Jake Wharton
225a39f47d Prepare change log for 1.0.2. 2013-05-11 20:55:14 -07:00
Jesse Wilson
fcbb0abf55 Merge pull request #188 from square/jwilson/fix_razr_bug
Don't explode if NetworkInterface.getByInetAddress does.
2013-05-10 17:02:25 -07:00
jwilson
d7e24381a3 Don't explode if NetworkInterface.getByInetAddress does.
Certain Motorola RAZRs always throw a SocketException when
you call that method. We don't _really_ need a perfect MTU,
so for those devices just return the default MTU.
2013-05-10 19:53:12 -04:00
Jake Wharton
8f586ba7c5 Merge pull request #186 from square/pforhan/java5
Replace String.isEmpty() calls with Java 5 methods
2013-05-10 07:40:58 -07:00
Patrick Forhan
70e13c131c Replace String.isEmpty() calls with Java 5 methods 2013-05-10 09:32:57 -05:00
jwilson
3ba54eed34 Bump the minimum MTU up to 1KiB.
If anyone is getting -1 from getMtu, we should give them a more
reasonable default.
2013-05-10 09:06:03 -04:00
Jesse Wilson
c5f94794fa Merge pull request #185 from square/jwilson/clamp_mtu
Clamp the MTU to a reasonable range.
2013-05-10 05:56:01 -07:00
jwilson
bb1b1a2c5c Clamp the MTU to a reasonable range.
https://github.com/square/okhttp/issues/183
2013-05-10 08:53:25 -04:00
Jake Wharton
8bf24a570c Merge branch 'master' of https://github.com/square/okhttp 2013-05-07 10:26:41 -07:00
Jake Wharton
570385f29a Remove javadoc zip from website directory. 2013-05-07 10:26:37 -07:00
Jake Wharton
8cb0fc7fc2 Merge pull request #178 from square/jwilson/javadocs
Hide internal from Javadocs
2013-05-07 08:38:30 -07:00
jwilson
5345c1ab20 Hide internal from Javadocs 2013-05-07 11:20:02 -04:00
Jesse Wilson
1dc3d4b1f8 Merge pull request #176 from square/jwilson/link
Link to the new OkHttp website.
2013-05-06 22:14:07 -07:00
jwilson
fcf3264d4d Link to the new OkHttp website. 2013-05-07 01:13:17 -04:00
Jesse Wilson
f4d414a8ca Merge pull request #174 from square/jw/apache-tests
Add some tests for the Apache wrapper.
2013-05-06 19:18:47 -07:00
Jake Wharton
7f4d253579 Add some tests for the Apache wrapper. 2013-05-06 16:53:59 -07:00
Jake Wharton
e5fc585341 Move analytics outside jQuery deferred block. 2013-05-06 15:29:57 -07:00
Jake Wharton
c9e5bed993 Website analytics. 2013-05-06 15:25:30 -07:00
Jake Wharton
c34f66895f Link to topic in G+ community. 2013-05-06 10:48:35 -07:00
Jake Wharton
8eda9900b5 Grab the latest javadoc when deploying the website. 2013-05-06 09:49:52 -07:00
Jake Wharton
b5ee64926d Style tweaks to Maven config. 2013-05-06 09:24:37 -07:00
Jake Wharton
d49ddf3414 [maven-release-plugin] prepare for next development iteration 2013-05-06 09:19:55 -07:00
Jake Wharton
66544feab6 [maven-release-plugin] prepare release parent-1.0.1 parent-1.0.1 2013-05-06 09:19:41 -07:00
Jesse Wilson
3725b3d1cc Merge pull request #172 from square/jw/casing
Jw/casing
2013-05-06 09:09:01 -07:00
Jake Wharton
eb5e72280b Use consistent camel casing of 'SSL'. 2013-05-06 09:05:09 -07:00
Jake Wharton
ae9d97110b Revert "Consistent casing of 'SSL' in method names."
This reverts commit ea4297ded7.
2013-05-06 08:59:20 -07:00
Jake Wharton
bd2cac58f3 [maven-release-plugin] prepare for next development iteration 2013-05-06 07:01:00 -07:00
Jake Wharton
d95ecff542 [maven-release-plugin] prepare release parent-1.0.0 parent-1.0.0 2013-05-06 07:00:47 -07:00
Jake Wharton
8f988a303b Auto-version submodules. 2013-05-06 06:59:26 -07:00
Jake Wharton
25264fa6b7 Add change log. 2013-05-06 06:54:38 -07:00
Jake Wharton
aa5b82378d Merge branch 'master' of https://github.com/square/okhttp 2013-05-05 23:31:51 -07:00