public class HttpProfile extends Object
Modifier and Type | Field and Description |
---|---|
static String |
REQ_GET
get请求
|
static String |
REQ_HTTP
http协议
|
static String |
REQ_HTTPS
https协议
|
static String |
REQ_POST
post请求
|
static int |
TM_MINUTE
时间单位,1分钟 60s
|
Constructor and Description |
---|
HttpProfile() |
Modifier and Type | Method and Description |
---|---|
int |
getConnTimeout()
获取连接超时时间
|
String |
getEndpoint()
获取请求域名
|
String |
getProtocol()
获取请求协议
|
int |
getReadTimeout()
获取读超时时间
|
String |
getReqMethod()
获取请求方法
|
int |
getWriteTimeout()
获取写超时时间
|
void |
setConnTimeout(int connTimeout)
设置连接超时时间
|
void |
setEndpoint(String endpoint)
设置请求域名
|
void |
setProtocol(String protocol)
设置请求协议
|
void |
setReadTimeout(int readTimeout)
设置读超时时间
|
void |
setReqMethod(String reqMethod)
设置请求方法
|
void |
setWriteTimeout(int writeTimeout)
设置写超时时间
|
public static final String REQ_HTTPS
public static final String REQ_HTTP
public static final String REQ_POST
public static final String REQ_GET
public static final int TM_MINUTE
public void setReqMethod(String reqMethod)
reqMethod
- 请求方法public void setEndpoint(String endpoint)
endpoint
- 域名(xx.[region.]tencentcloudapi.com)public void setReadTimeout(int readTimeout)
readTimeout
- 读超时时间public void setWriteTimeout(int writeTimeout)
writeTimeout
- 写超时时间public void setConnTimeout(int connTimeout)
connTimeout
- 连接超时时间public void setProtocol(String protocol)
protocol
- 请求协议(https:// http://)public String getReqMethod()
public String getEndpoint()
public int getReadTimeout()
public int getWriteTimeout()
public int getConnTimeout()
public String getProtocol()
Copyright © 2019. All rights reserved.