与连接池的URLConnection? [英] Connection pooling with URLConnection?

查看:228
本文介绍了与连接池的URLConnection?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚看了一下http客户端选项android的文章。我想开始使用HttpsURLConnection的,一个人如何启用连接池呢?文章说,这是可能的,但并没有解释如何。

I've just read the android article about http client options. I'd like to start using HttpsURLConnection, how does one enable connection pooling for it? The article says that is possible, but doesn't explain how.

http://android-developers.blogspot.com/ 2011/09 /机器人-HTTP-clients.html

理想情况下,池将减少响应时间,我的HTTP请求。​​

Ideally the pooling would cut down on response time for my http requests.

感谢您

推荐答案

这是默认启用。请参阅该文档的一些细节:

It's enabled by default. See the docs for some details:

http://developer.android.com/reference/java/net/ HttpURLConnection.html

这篇关于与连接池的URLConnection?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆