Each HttpURLConnection instance is used to make a single request but the underlying network connection to the HTTP server may be transparently shared by other instances.
-
每个HttpURLConnection实例是用于制造单个请求但底层网络连接到HTTP服务器可以透明地共享的其他实例。
-
Calling the close() methods on the InputStream or OutputStream of an HttpURLConnection after a request may free network resources associated with this instance but has no effect on any shared persistent connection.
-
调用close()方法后的InputStream或OutputStream HttpURLConnection请求可能免费网络资源相关的实例,但不影响任何共享的持久连接。
-
Calling the disconnect() method may close the underlying socket if a persistent connection is otherwise idle at that time.
-
调用断开()方法可能关闭底层的套接字如果持久连接空闲。
-
The HTTP protocol handler has a few settings that can be accessed through System Properties. This covers Proxy settings as well as various other settings .
-
HTTP协议处理程序有一些设置,可以通过系统属性访问。这包括代理设置以及其他各种设置。