public final class QCloudHttpClient
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static class |
QCloudHttpClient.Builder |
static interface |
QCloudHttpClient.QCloudDnsFetch
DNS获取
|
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
HTTP_LOG_TAG |
static java.lang.String |
QUIC_LOG_TAG |
限定符和类型 | 方法和说明 |
---|---|
void |
addDnsFetch(QCloudHttpClient.QCloudDnsFetch dnsFetch)
添加自定义Dns获取器
|
void |
addDnsRecord(java.lang.String hostName,
java.lang.String[] ipAddress)
添加自定义DNS记录
|
void |
addVerifiedHost(java.lang.String hostname) |
static QCloudHttpClient |
getDefault() |
java.util.List<HttpTask> |
getTasksByTag(java.lang.String tag) |
<T> HttpTask<T> |
resolveRequest(HttpRequest<T> request) |
<T> HttpTask<T> |
resolveRequest(QCloudHttpRequest<T> request,
QCloudCredentialProvider credentialProvider) |
void |
setDebuggable(boolean debuggable) |
void |
setNetworkClientType(QCloudHttpClient.Builder b) |
public static final java.lang.String HTTP_LOG_TAG
public static final java.lang.String QUIC_LOG_TAG
public static QCloudHttpClient getDefault()
public void addVerifiedHost(java.lang.String hostname)
public void addDnsRecord(@NonNull java.lang.String hostName, @NonNull java.lang.String[] ipAddress) throws java.net.UnknownHostException
hostName
- hostipAddress
- ip集合java.net.UnknownHostException
- 无法解析host异常public void addDnsFetch(@NonNull QCloudHttpClient.QCloudDnsFetch dnsFetch)
dnsFetch
- Dns获取器public void setDebuggable(boolean debuggable)
public void setNetworkClientType(QCloudHttpClient.Builder b)
public java.util.List<HttpTask> getTasksByTag(java.lang.String tag)
public <T> HttpTask<T> resolveRequest(HttpRequest<T> request)
public <T> HttpTask<T> resolveRequest(QCloudHttpRequest<T> request, QCloudCredentialProvider credentialProvider)