http client: DEL is not a verb, but DELETE is, fix #281
This commit is contained in:
		| @@ -2,6 +2,10 @@ | ||||
|  | ||||
| All changes to this project will be documented in this file. | ||||
|  | ||||
| ## [11.2.5] - 2021-04-04 | ||||
|  | ||||
| (http client) DEL is not an HTTP method name, but DELETE is | ||||
|  | ||||
| ## [11.2.4] - 2021-03-25 | ||||
|  | ||||
| (cmake) install IXUniquePtr.h | ||||
|   | ||||
| @@ -20,10 +20,11 @@ | ||||
|  | ||||
| namespace ix | ||||
| { | ||||
|     // https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods | ||||
|     const std::string HttpClient::kPost = "POST"; | ||||
|     const std::string HttpClient::kGet = "GET"; | ||||
|     const std::string HttpClient::kHead = "HEAD"; | ||||
|     const std::string HttpClient::kDel = "DEL"; | ||||
|     const std::string HttpClient::kDelete = "DELETE"; | ||||
|     const std::string HttpClient::kPut = "PUT"; | ||||
|     const std::string HttpClient::kPatch = "PATCH"; | ||||
|  | ||||
| @@ -557,9 +558,9 @@ namespace ix | ||||
|         return request(url, kHead, std::string(), args); | ||||
|     } | ||||
|  | ||||
|     HttpResponsePtr HttpClient::del(const std::string& url, HttpRequestArgsPtr args) | ||||
|     HttpResponsePtr HttpClient::Delete(const std::string& url, HttpRequestArgsPtr args) | ||||
|     { | ||||
|         return request(url, kDel, std::string(), args); | ||||
|         return request(url, kDelete, std::string(), args); | ||||
|     } | ||||
|  | ||||
|     HttpResponsePtr HttpClient::request(const std::string& url, | ||||
|   | ||||
| @@ -30,7 +30,7 @@ namespace ix | ||||
|  | ||||
|         HttpResponsePtr get(const std::string& url, HttpRequestArgsPtr args); | ||||
|         HttpResponsePtr head(const std::string& url, HttpRequestArgsPtr args); | ||||
|         HttpResponsePtr del(const std::string& url, HttpRequestArgsPtr args); | ||||
|         HttpResponsePtr Delete(const std::string& url, HttpRequestArgsPtr args); | ||||
|  | ||||
|         HttpResponsePtr post(const std::string& url, | ||||
|                              const HttpParameters& httpParameters, | ||||
| @@ -94,7 +94,7 @@ namespace ix | ||||
|         const static std::string kPost; | ||||
|         const static std::string kGet; | ||||
|         const static std::string kHead; | ||||
|         const static std::string kDel; | ||||
|         const static std::string kDelete; | ||||
|         const static std::string kPut; | ||||
|         const static std::string kPatch; | ||||
|  | ||||
|   | ||||
| @@ -6,4 +6,4 @@ | ||||
|  | ||||
| #pragma once | ||||
|  | ||||
| #define IX_WEBSOCKET_VERSION "11.2.4" | ||||
| #define IX_WEBSOCKET_VERSION "11.2.5" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user