Change argument “meth” to “method” in make_request().
This commit is contained in:
parent
07d16594c9
commit
078130bac6
@ -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;
|
||||
|
@ -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:
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user