supported config useSSL

This commit is contained in:
wb-hx510875
2020-07-01 14:08:32 +08:00
committed by Axios
parent 8bed6eecc7
commit 5a451d16d4
6 changed files with 31 additions and 2 deletions

View File

@@ -43,12 +43,16 @@ class ALIBABACLOUD_CORE_EXPORT ClientConfiguration {
void setConnectTimeout(const long connectTimeout);
void setReadTimeout(const long readTimeout);
bool rejectUnauthorized() const;
void setRejectUnauthorized(const bool rejectUnauthorized);
private:
std::string endpoint_;
NetworkProxy proxy_;
std::string regionId_;
long connectTimeout_;
long readTimeout_;
bool rejectUnauthorized_ = true;
};
} // namespace AlibabaCloud

View File

@@ -34,9 +34,12 @@ class HttpClient {
virtual HttpResponseOutcome makeRequest(const HttpRequest &request) = 0;
NetworkProxy proxy()const;
void setProxy(const NetworkProxy &proxy);
bool rejectUnauthorized()const;
void setRejectUnauthorized(const bool &rejectUnauthorized);
private:
NetworkProxy proxy_;
bool rejectUnauthorized_;
};
} // namespace AlibabaCloud
#endif // CORE_INCLUDE_ALIBABACLOUD_CORE_HTTPCLIENT_H_