public static interface HttpRequest.ConnectionFactory
HTTP connections for
urls.| 限定符和类型 | 字段和说明 |
|---|---|
static HttpRequest.ConnectionFactory |
DEFAULT
A
HttpRequest.ConnectionFactory which uses the built-in
URL.openConnection() |
| 限定符和类型 | 方法和说明 |
|---|---|
HttpURLConnection |
create(URL url)
Open an
HttpURLConnection for the specified URL. |
HttpURLConnection |
create(URL url,
Proxy proxy)
|
static final HttpRequest.ConnectionFactory DEFAULT
HttpRequest.ConnectionFactory which uses the built-in
URL.openConnection()HttpURLConnection create(URL url) throws IOException
HttpURLConnection for the specified URL.IOExceptionHttpURLConnection create(URL url, Proxy proxy) throws IOException
IOExceptionCopyright © 2023. All rights reserved.