{"id":7735,"date":"2015-10-19T01:17:04","date_gmt":"2015-10-19T01:17:04","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/square-okhttp\/"},"modified":"2015-10-19T01:17:04","modified_gmt":"2015-10-19T01:17:04","slug":"square-okhttp","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2015\/10\/19\/square-okhttp\/","title":{"rendered":"square\/okhttp"},"content":{"rendered":"<p>An HTTP &amp; SPDY client for Android and Java applications. For more information see the website and the wiki.<\/p>\n<h2>Download<\/h2>\n<p>Download the latest JAR or grab via Maven:<\/p>\n<pre><code>\n  com.squareup.okhttp\n  okhttp\n  2.4.0\n\n<\/code><\/pre>\n<p>or Gradle:<\/p>\n<pre><code>compile 'com.squareup.okhttp:okhttp:2.4.0'\n<\/code><\/pre>\n<p>Snapshots of the development version are available in Sonatype\u2019s <code>snapshots<\/code> repository.<\/p>\n<h2>MockWebServer<\/h2>\n<p>A library for testing HTTP, HTTPS, HTTP\/2.0, and SPDY clients.<\/p>\n<p>MockWebServer coupling with OkHttp is essential for proper testing of SPDY and HTTP\/2.0 so that code can be shared.<\/p>\n<h3>Download<\/h3>\n<p>Download the latest JAR or grab via Maven:<\/p>\n<pre><code>\n  com.squareup.okhttp\n  mockwebserver\n  2.4.0\n  test\n\n<\/code><\/pre>\n<p>or Gradle:<\/p>\n<pre><code>testCompile 'com.squareup.okhttp:mockwebserver:2.4.0'\n<\/code><\/pre>\n<h2>License<\/h2>\n<pre><code>Licensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n   http:\/\/www.apache.org\/licenses\/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>An HTTP &amp; SPDY client for Android and Java applications. For more information see the website and the wiki. Download Download the latest JAR or grab via Maven: com.squareup.okhttp okhttp 2.4.0 or Gradle: compile &#8216;com.squareup.okhttp:okhttp:2.4.0&#8217; Snapshots of the development version are available in Sonatype\u2019s snapshots repository. MockWebServer A library for testing HTTP, HTTPS, HTTP\/2.0, and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7735","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7735","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7735"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7735\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7735"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7735"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7735"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}