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

Method ~HTTPClient

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

Source from the content-addressed store, hash-verified

54}
55
56HTTPClient::~HTTPClient() {
57 if (nullptr != headers_) {
58 curl_slist_free_all(headers_);
59 headers_ = nullptr;
60 }
61 if (http_session_ != nullptr) {
62 curl_easy_cleanup(http_session_);
63 http_session_ = nullptr;
64 }
65 // forceClose ended up not being the issue in MINIFICPP-667, but leaving here
66 // out of good hygiene.
67 forceClose();
68 read_callback_.close();
69 logger_->log_trace("Closing HTTPClient for %s", url_);
70}
71
72void HTTPClient::forceClose() {
73 if (nullptr != callback) {

Callers

nothing calls this directly

Calls 2

log_traceMethod · 0.80
closeMethod · 0.45

Tested by

no test coverage detected