remove HttpMethod enum

This commit is contained in:
MihailRis 2026-09-09 23:47:23 +03:00
parent 74bb695807
commit 018e4c9f2c
2 changed files with 2 additions and 18 deletions

View file

@ -63,19 +63,7 @@ public:
buffer.clear();
curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
switch (request.method) {
case HttpMethod::GET:
break;
case HttpMethod::POST:
curl_easy_setopt(curl, CURLOPT_POST, true);
break;
case HttpMethod::PUT:
curl_easy_setopt(curl, CURLOPT_UPLOAD, true);
break;
case HttpMethod::DELETE:
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "DELETE");
break;
}
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, request.method);
curl_slist* hs = nullptr;