How to use OkHttp Library for providing spdy support to android client? -
i want make simple app of android client speedy (spdy) support, stuck.
i using v2.0.0 jar of okhttp in app making. used following code (taken here):
package com.squareup.okhttp.guide;  import com.squareup.okhttp.okhttpclient; import com.squareup.okhttp.request; import com.squareup.okhttp.response; import java.io.ioexception;  public class getexample {   okhttpclient client = new okhttpclient();    string run(string url) throws ioexception {     request request = new request.builder()         .url(url)         .build();      response response = client.newcall(request).execute();     return response.body().string();   }    public static void main(string[] args) throws ioexception {     getexample example = new getexample();     string response = example.run("https://raw.github.com/square/okhttp/master/readme.md");     system.out.println(response);   } }   the nextcall() method here not executed.  repeatedly says nextcall() method not exist in okhttpclient class.
 
 
Comments
Post a Comment