README.android
README.md
1OkHttp
2======
3
4An HTTP+SPDY client for Android and Java applications.
5
6
7Download
8--------
9
10Downloadable .jars can be found on the [GitHub download page][1].
11
12You can also depend on the .jar through Maven:
13
14```xml
15<dependency>
16 <groupId>com.squareup</groupId>
17 <artifactId>okhttp</artifactId>
18 <version>(insert latest version)</version>
19</dependency>
20```
21
22
23Known Issues
24------------
25
26The SPDY implementation is incomplete:
27
28* Settings frames are not honored. Flow control is not implemented.
29* It assumes a well-behaved peer. If the peer sends an invalid frame, OkHttp's SPDY client will not respond with the required `RST` frame.
30
31OkHttp uses the platform's [ProxySelector][2]. Prior to Android 4.0, `ProxySelector` didn't honor the `proxyHost` and `proxyPort` system properties for HTTPS connections. Work around this by specifying the `https.proxyHost` and `https.proxyPort` system properties when using a proxy with HTTPS.
32
33OkHttp's test suite creates an in-process HTTPS server. Prior to Android 2.3, SSL server sockets were broken, and so HTTPS tests will time out when run on such devices.
34
35
36Contributing
37------------
38
39If you would like to contribute code to OkHttp you can do so through GitHub by
40forking the repository and sending a pull request.
41
42When submitting code, please make every effort to follow existing conventions
43and style in order to keep the code as readable as possible. Please also make
44sure your code compiles by running `mvn clean verify`. Checkstyle failures
45during compilation indicate errors in your style and can be viewed in the
46`checkstyle-result.xml` file.
47
48Before your code can be accepted into the project you must also sign the
49[Individual Contributor License Agreement (CLA)][3].
50
51
52License
53-------
54
55 Licensed under the Apache License, Version 2.0 (the "License");
56 you may not use this file except in compliance with the License.
57 You may obtain a copy of the License at
58
59 http://www.apache.org/licenses/LICENSE-2.0
60
61 Unless required by applicable law or agreed to in writing, software
62 distributed under the License is distributed on an "AS IS" BASIS,
63 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
64 See the License for the specific language governing permissions and
65 limitations under the License.
66
67
68
69 [1]: http://github.com/square/okhttp/downloads
70 [2]: http://developer.android.com/reference/java/net/ProxySelector.html
71 [3]: https://spreadsheets.google.com/spreadsheet/viewform?formkey=dDViT2xzUHAwRkI3X3k5Z0lQM091OGc6MQ&ndplr=1
72