supported config useSSL
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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_
|
||||
|
||||
Reference in New Issue
Block a user