MCPcopy Create free account
hub / github.com/apache/nifi-minifi-cpp / initialize

Method initialize

extensions/http-curl/client/HTTPClient.cpp:101–113  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

99}
100
101void 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
115void HTTPClient::setDisablePeerVerification() {
116 logger_->log_debug("Disabling peer verification");

Callers 4

mainFunction · 0.45
setupFlowMethod · 0.45
mainFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 3

mainFunction · 0.36
setupFlowMethod · 0.36
mainFunction · 0.36