Line data Source code
1 : #include "curl.h" 2 : #include "default_http_client.h" 3 : 4 : // This file is included in the build when libcurl is included in the build. 5 : // It provides an implementation of `default_http_client` that returns a 6 : // `Curl` instance. 7 : // 8 : // If libcurl is not included in the build, then `default_http_client_null.cpp` 9 : // will be built instead. 10 : 11 : namespace datadog { 12 : namespace tracing { 13 : 14 208 : std::shared_ptr<HTTPClient> default_http_client( 15 : const std::shared_ptr<Logger>& logger, const Clock& clock) { 16 208 : return std::make_shared<Curl>(logger, clock); 17 : } 18 : 19 : } // namespace tracing 20 : } // namespace datadog