AndroidHttpClient and DefaultHttpClient

前端 未结 3 1988
遥遥无期
遥遥无期 2021-01-31 19:16

Is there much difference between those two and which one is preferably to use?

3条回答
  •  梦如初夏
    2021-01-31 20:09

    AndroidHttpClient: Subclass of the Apache DefaultHttpClient that is configured with reasonable default settings and registered schemes for Android, and also lets the user add HttpRequestInterceptor classes. This client processes cookies but does not retain them by default. To retain cookies, simply add a cookie store to the HttpContext

    [API]

提交回复
热议问题