public class HttpConnection extends Object
Constructor and Description |
---|
HttpConnection(Integer connTimeout,
Integer readTimeout,
Integer writeTimeout) |
Modifier and Type | Method and Description |
---|---|
com.squareup.okhttp.Response |
doRequest(com.squareup.okhttp.Request request) |
com.squareup.okhttp.Response |
getRequest(String url) |
com.squareup.okhttp.Response |
postRequest(String url,
String body) |
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 postRequest(String url, String body) throws TencentCloudSDKException
TencentCloudSDKException
Copyright © 2018. All rights reserved.