public class HttpConnection extends Object
Constructor and Description |
---|
HttpConnection(Integer connTimeout,
Integer readTimeout,
Integer writeTimeout) |
Modifier and Type | Method and Description |
---|---|
void |
addInterceptors(com.squareup.okhttp.Interceptor interceptor) |
com.squareup.okhttp.Response |
doRequest(com.squareup.okhttp.Request request) |
com.squareup.okhttp.Response |
getRequest(String url) |
com.squareup.okhttp.Response |
getRequest(String url,
com.squareup.okhttp.Headers headers) |
com.squareup.okhttp.Response |
postRequest(String url,
byte[] body,
com.squareup.okhttp.Headers headers) |
com.squareup.okhttp.Response |
postRequest(String url,
String body) |
com.squareup.okhttp.Response |
postRequest(String url,
String body,
com.squareup.okhttp.Headers headers) |
void |
setAuthenticator(com.squareup.okhttp.Authenticator authenticator) |
void |
setProxy(Proxy proxy) |
public void addInterceptors(com.squareup.okhttp.Interceptor interceptor)
public void setProxy(Proxy proxy)
public void setAuthenticator(com.squareup.okhttp.Authenticator authenticator)
public com.squareup.okhttp.Response doRequest(com.squareup.okhttp.Request request) throws TencentCloudSDKException
TencentCloudSDKException
public com.squareup.okhttp.Response getRequest(String url) throws TencentCloudSDKException
TencentCloudSDKException
public com.squareup.okhttp.Response getRequest(String url, com.squareup.okhttp.Headers headers) throws TencentCloudSDKException
TencentCloudSDKException
public com.squareup.okhttp.Response postRequest(String url, String body) throws TencentCloudSDKException
TencentCloudSDKException
public com.squareup.okhttp.Response postRequest(String url, String body, com.squareup.okhttp.Headers headers) throws TencentCloudSDKException
TencentCloudSDKException
public com.squareup.okhttp.Response postRequest(String url, byte[] body, com.squareup.okhttp.Headers headers) throws TencentCloudSDKException
TencentCloudSDKException
Copyright © 2021. All rights reserved.