mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 19:11:50 +00:00
remove HttpMethod enum
This commit is contained in:
parent
74bb695807
commit
018e4c9f2c
2 changed files with 2 additions and 18 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue