Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
android/main/java/com/squareup/okhttp/ | 03-May-2024 | - | 182 | 94 | ||
src/ | 03-May-2024 | - | 18,606 | 13,329 | ||
Android.mk | D | 03-May-2024 | 1.4 KiB | 40 | 21 | |
CONTRIBUTING.md | D | 03-May-2024 | 732 | 18 | 12 | |
LICENSE.txt | D | 03-May-2024 | 11.1 KiB | 203 | 169 | |
MODULE_LICENSE_APACHE2 | D | 03-May-2024 | 0 | |||
README.android | D | 03-May-2024 | 349 | 11 | 8 | |
README.md | D | 03-May-2024 | 2.3 KiB | 72 | 49 | |
checkstyle.xml | D | 03-May-2024 | 4.9 KiB | 133 | 66 | |
jarjar-rules.txt | D | 03-May-2024 | 36 | 2 | 1 | |
pom.xml | D | 03-May-2024 | 4.9 KiB | 135 | 105 |
README.android
1URL: https://github.com/square/okhttp 2License: Apache 2 3Description: "OkHttp: An HTTP+SPDY client for Android and Java applications." 4 5Local patches 6------------- 7- Changes to libcore/util/Libcore.java to remove OpenJDK / Jetty dependencies. 8- Change SpdyWriter.java to call Libcore#newDeflaterOutputStream instead 9 of using a hidden constructor. 10 11
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 26OkHttp 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. 27 28OkHttp'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. 29 30 31Building 32-------- 33 34### On the Desktop 35Run OkHttp tests on the desktop with Maven. Running SPDY tests on the desktop uses [Jetty-NPN](http://wiki.eclipse.org/Jetty/Feature/NPN) which requires OpenJDK 7+. 36``` 37mvn clean test 38``` 39 40### On a Device 41Test on a USB-attached Android using [Vogar](https://code.google.com/p/vogar/). Unfortunately `dx` requires that you build with Java 6, otherwise the test class will be silently omitted from the `.dex` file. 42``` 43mvn clean 44mvn package -DskipTests 45vogar \ 46 --classpath ~/.m2/repository/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar \ 47 --classpath ~/.m2/repository/com/google/mockwebserver/mockwebserver/20130122/mockwebserver-20130122.jar \ 48 --classpath target/okhttp-0.9-SNAPSHOT.jar \ 49 ./src/test/java 50``` 51 52 53License 54------- 55 56 Licensed under the Apache License, Version 2.0 (the "License"); 57 you may not use this file except in compliance with the License. 58 You may obtain a copy of the License at 59 60 http://www.apache.org/licenses/LICENSE-2.0 61 62 Unless required by applicable law or agreed to in writing, software 63 distributed under the License is distributed on an "AS IS" BASIS, 64 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 65 See the License for the specific language governing permissions and 66 limitations under the License. 67 68 69 70 [1]: http://github.com/square/okhttp/downloads 71 [2]: http://developer.android.com/reference/java/net/ProxySelector.html 72