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

Method matches

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

Source from the content-addressed store, hash-verified

372}
373
374bool HTTPClient::matches(const std::string &value, const std::string &sregex) {
375 if (sregex == ".*")
376 return true;
377 try {
378 utils::Regex rgx(sregex);
379 return rgx.match(value);
380 } catch (const Exception &) {
381 return false;
382 }
383}
384
385void HTTPClient::configure_secure_connection(CURL *http_session) {
386 logger_->log_debug("Using certificate file \"%s\"", ssl_context_service_->getCertificateFile());

Callers 1

removeAllAttributesMethod · 0.80

Calls 1

matchMethod · 0.80

Tested by

no test coverage detected