Google Cloud EndpointsクラスのGZipContentを無効にして、POSTをローカル開発サーバーで使用できるようにしたいとします。AndroidのCloud Endpoints BuilderでGZipContentを無効にする方法
最新GPEのリリースは、このエンドポイントビルダー生成:
public static final class Builder extends AbstractGoogleJsonClient.Builder {
public Builder(HttpTransport transport, JsonFactory jsonFactory,
HttpRequestInitializer httpRequestInitializer) {
super(
transport,
jsonFactory,
...);
}
をし、Googleドキュメントは、このようにそれを使用することをお勧めします:
Myendpoint.Builder endpointBuilder = new Myendpoint.Builder(
AndroidHttp.newCompatibleTransport(),
new GsonFactory(),
credential);
は、エンドポイントのGZipContentを無効にする方法を誰もが知っていますか?
ありがとうございました。
を使用でき
ありがとうございましたDan!それはちょうど良い(私はxxxxxRequestInitializerのコントロールに気づいたが、それを使用する方法はわかりませんでした)。私は私の日仕事を終えて答えを受け入れると、後でそれをテストします。 – aez