diff --git a/include/curl_wrapper.hpp b/include/curl_wrapper.hpp index f00388c..77eda31 100644 --- a/include/curl_wrapper.hpp +++ b/include/curl_wrapper.hpp @@ -30,6 +30,11 @@ namespace mastodonpp using std::string; using std::string_view; +/*! + * @brief The HTTP method. + * + * @since 0.1.0 + */ enum class http_method { GET, @@ -91,7 +96,7 @@ public: * @since 0.1.0 */ [[nodiscard]] - answer_type make_request(const http_method &meth, const string_view &uri); + answer_type make_request(const http_method &method, const string_view &uri); private: CURL *_connection; diff --git a/src/curl_wrapper.cpp b/src/curl_wrapper.cpp index 5d04d38..db5ef3f 100644 --- a/src/curl_wrapper.cpp +++ b/src/curl_wrapper.cpp @@ -33,11 +33,13 @@ CURLWrapper::~CURLWrapper() noexcept curl_global_cleanup(); } -answer_type CURLWrapper::make_request(const http_method &meth, - const string_view &uri) +answer_type CURLWrapper::make_request(const http_method &method, + const string_view &uri) { + debuglog << "Making request to: " << uri << '\n'; + CURLcode code; - switch (meth) + switch (method) { case http_method::GET: {