1*ab625e41SAndroid Build Coastguard WorkerOkHttp 2*ab625e41SAndroid Build Coastguard Worker====== 3*ab625e41SAndroid Build Coastguard Worker 4*ab625e41SAndroid Build Coastguard WorkerAn HTTP & SPDY client for Android and Java applications. For more information see [the website][1] and [the wiki][2]. 5*ab625e41SAndroid Build Coastguard Worker 6*ab625e41SAndroid Build Coastguard WorkerDownload 7*ab625e41SAndroid Build Coastguard Worker-------- 8*ab625e41SAndroid Build Coastguard Worker 9*ab625e41SAndroid Build Coastguard WorkerDownload [the latest JAR][3] or grab via Maven: 10*ab625e41SAndroid Build Coastguard Worker```xml 11*ab625e41SAndroid Build Coastguard Worker<dependency> 12*ab625e41SAndroid Build Coastguard Worker <groupId>com.squareup.okhttp</groupId> 13*ab625e41SAndroid Build Coastguard Worker <artifactId>okhttp</artifactId> 14*ab625e41SAndroid Build Coastguard Worker <version>2.6.0</version> 15*ab625e41SAndroid Build Coastguard Worker</dependency> 16*ab625e41SAndroid Build Coastguard Worker``` 17*ab625e41SAndroid Build Coastguard Workeror Gradle: 18*ab625e41SAndroid Build Coastguard Worker```groovy 19*ab625e41SAndroid Build Coastguard Workercompile 'com.squareup.okhttp:okhttp:2.6.0' 20*ab625e41SAndroid Build Coastguard Worker``` 21*ab625e41SAndroid Build Coastguard Worker 22*ab625e41SAndroid Build Coastguard WorkerSnapshots of the development version are available in [Sonatype's `snapshots` repository][snap]. 23*ab625e41SAndroid Build Coastguard Worker 24*ab625e41SAndroid Build Coastguard Worker 25*ab625e41SAndroid Build Coastguard WorkerMockWebServer 26*ab625e41SAndroid Build Coastguard Worker------------- 27*ab625e41SAndroid Build Coastguard Worker 28*ab625e41SAndroid Build Coastguard WorkerA library for testing HTTP, HTTPS, HTTP/2.0, and SPDY clients. 29*ab625e41SAndroid Build Coastguard Worker 30*ab625e41SAndroid Build Coastguard WorkerMockWebServer coupling with OkHttp is essential for proper testing of SPDY and HTTP/2.0 so that code can be shared. 31*ab625e41SAndroid Build Coastguard Worker 32*ab625e41SAndroid Build Coastguard Worker### Download 33*ab625e41SAndroid Build Coastguard Worker 34*ab625e41SAndroid Build Coastguard WorkerDownload [the latest JAR][4] or grab via Maven: 35*ab625e41SAndroid Build Coastguard Worker```xml 36*ab625e41SAndroid Build Coastguard Worker<dependency> 37*ab625e41SAndroid Build Coastguard Worker <groupId>com.squareup.okhttp</groupId> 38*ab625e41SAndroid Build Coastguard Worker <artifactId>mockwebserver</artifactId> 39*ab625e41SAndroid Build Coastguard Worker <version>2.6.0</version> 40*ab625e41SAndroid Build Coastguard Worker <scope>test</scope> 41*ab625e41SAndroid Build Coastguard Worker</dependency> 42*ab625e41SAndroid Build Coastguard Worker``` 43*ab625e41SAndroid Build Coastguard Workeror Gradle: 44*ab625e41SAndroid Build Coastguard Worker```groovy 45*ab625e41SAndroid Build Coastguard WorkertestCompile 'com.squareup.okhttp:mockwebserver:2.6.0' 46*ab625e41SAndroid Build Coastguard Worker``` 47*ab625e41SAndroid Build Coastguard Worker 48*ab625e41SAndroid Build Coastguard Worker 49*ab625e41SAndroid Build Coastguard Worker 50*ab625e41SAndroid Build Coastguard WorkerLicense 51*ab625e41SAndroid Build Coastguard Worker------- 52*ab625e41SAndroid Build Coastguard Worker 53*ab625e41SAndroid Build Coastguard Worker Licensed under the Apache License, Version 2.0 (the "License"); 54*ab625e41SAndroid Build Coastguard Worker you may not use this file except in compliance with the License. 55*ab625e41SAndroid Build Coastguard Worker You may obtain a copy of the License at 56*ab625e41SAndroid Build Coastguard Worker 57*ab625e41SAndroid Build Coastguard Worker http://www.apache.org/licenses/LICENSE-2.0 58*ab625e41SAndroid Build Coastguard Worker 59*ab625e41SAndroid Build Coastguard Worker Unless required by applicable law or agreed to in writing, software 60*ab625e41SAndroid Build Coastguard Worker distributed under the License is distributed on an "AS IS" BASIS, 61*ab625e41SAndroid Build Coastguard Worker WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 62*ab625e41SAndroid Build Coastguard Worker See the License for the specific language governing permissions and 63*ab625e41SAndroid Build Coastguard Worker limitations under the License. 64*ab625e41SAndroid Build Coastguard Worker 65*ab625e41SAndroid Build Coastguard Worker 66*ab625e41SAndroid Build Coastguard Worker [1]: http://square.github.io/okhttp 67*ab625e41SAndroid Build Coastguard Worker [2]: https://github.com/square/okhttp/wiki 68*ab625e41SAndroid Build Coastguard Worker [3]: https://search.maven.org/remote_content?g=com.squareup.okhttp&a=okhttp&v=LATEST 69*ab625e41SAndroid Build Coastguard Worker [4]: https://search.maven.org/remote_content?g=com.squareup.okhttp&a=mockwebserver&v=LATEST 70*ab625e41SAndroid Build Coastguard Worker [snap]: https://oss.sonatype.org/content/repositories/snapshots/ 71