← Transport | Proxy(中文) | Timeout →
Default
No proxy.
import com.volcengine.ApiClient;
import com.volcengine.sign.Credentials;
public class SampleCode {
public static void main(String[] args) {
String regionId = "cn-beijing";
ApiClient apiClient = new ApiClient()
.setCredentials(Credentials.getEnvCredentials())
.setRegion(regionId)
.setHttpProxy("http://your_http_proxy:proxy_port")
.setHttpsProxy("http://your_https_proxy:proxy_port");
}
}The following environment variables are supported:
http_proxy/HTTP_PROXYhttps_proxy/HTTPS_PROXY
Priority: code > environment variables.
← Transport | Proxy(中文) | Timeout →