将 OkHttp 与 Google 云端点一起使用
Using OkHttp with Google Cloud Endpoints
Google Cloud Endpoint 生成 Android client expects an HttpTransport, JsonFactory and HttpRequestInitializer as part of the generated Builder constructor (which extends from AbstractGoogleJsonClient.Builder. I want to use Stetho to watch these network calls, but I cannot seem to figure out how to get OkHttp 以与生成的客户端一起工作。
有没有人能够在 Android 上(使用或不使用 OkHttp)成功地将 Stetho 与 Google Cloud Endpoints 一起使用?
也许检查这个 Github issue. There's also an OkHttpTransport 已经有一段时间没有修改了,但是基础是,如果你想在 Java 客户端上使用 OkHttp,你可以扩展 HttpTransport
使用OkHttp构建请求。
Google Cloud Endpoint 生成 Android client expects an HttpTransport, JsonFactory and HttpRequestInitializer as part of the generated Builder constructor (which extends from AbstractGoogleJsonClient.Builder. I want to use Stetho to watch these network calls, but I cannot seem to figure out how to get OkHttp 以与生成的客户端一起工作。
有没有人能够在 Android 上(使用或不使用 OkHttp)成功地将 Stetho 与 Google Cloud Endpoints 一起使用?
也许检查这个 Github issue. There's also an OkHttpTransport 已经有一段时间没有修改了,但是基础是,如果你想在 Java 客户端上使用 OkHttp,你可以扩展 HttpTransport
使用OkHttp构建请求。