| 99 | } |
| 100 | |
| 101 | void HTTPClient::initialize(const std::string &method, const std::string url, const std::shared_ptr<minifi::controllers::SSLContextService> ssl_context_service) { |
| 102 | method_ = method; |
| 103 | set_request_method(method_); |
| 104 | if (ssl_context_service != nullptr) { |
| 105 | ssl_context_service_ = ssl_context_service; |
| 106 | } |
| 107 | if (!url.empty()) { |
| 108 | url_ = url; |
| 109 | } |
| 110 | if (isSecure(url_) && ssl_context_service_ != nullptr) { |
| 111 | configure_secure_connection(http_session_); |
| 112 | } |
| 113 | } |
| 114 | |
| 115 | void HTTPClient::setDisablePeerVerification() { |
| 116 | logger_->log_debug("Disabling peer verification"); |