public class HttpConnection extends Object
| 构造器和说明 |
|---|
HttpConnection(Integer connTimeout,
Integer readTimeout,
Integer writeTimeout) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
addInterceptors(okhttp3.Interceptor interceptor) |
okhttp3.Response |
deleteRequest(String url) |
okhttp3.Response |
doRequest(okhttp3.Request request) |
okhttp3.Response |
getRequest(String url) |
okhttp3.Response |
postFormRequest(String url,
byte[] body,
String fieldName,
String fileName,
String fileMime) |
okhttp3.Response |
postRequest(String url,
byte[] body) |
okhttp3.Response |
postRequest(String url,
byte[] body,
okhttp3.Headers headers) |
okhttp3.Response |
putRequest(String url,
byte[] body) |
void |
setProxy(Proxy proxy) |
void |
setProxyAuthenticator(okhttp3.Authenticator authenticator) |
public void addInterceptors(okhttp3.Interceptor interceptor)
public void setProxy(Proxy proxy)
public void setProxyAuthenticator(okhttp3.Authenticator authenticator)
public okhttp3.Response doRequest(okhttp3.Request request)
throws CloudTestSDKException
public okhttp3.Response getRequest(String url) throws CloudTestSDKException
public okhttp3.Response deleteRequest(String url) throws CloudTestSDKException
public okhttp3.Response postRequest(String url, byte[] body) throws CloudTestSDKException
public okhttp3.Response putRequest(String url, byte[] body) throws CloudTestSDKException
public okhttp3.Response postFormRequest(String url, byte[] body, String fieldName, String fileName, String fileMime) throws CloudTestSDKException
public okhttp3.Response postRequest(String url, byte[] body, okhttp3.Headers headers) throws CloudTestSDKException
Copyright © 2022. All rights reserved.