mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fix #1551
This commit is contained in:
1 parent
1729aa8c1f
commit
b2bf172393
2 files changed
+154
No files matched your search
@@ -1450,6 +1450,11 @@ public:
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const std::string &body, const std::string &content_type,
|
||||
Progress progress);
|
||||
Result Delete(const std::string &path, const Params ¶ms);
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms);
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms, Progress progress);
|
||||
|
||||
Result Options(const std::string &path);
|
||||
Result Options(const std::string &path, const Headers &headers);
|
||||
@@ -1894,6 +1899,11 @@ public:
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const std::string &body, const std::string &content_type,
|
||||
Progress progress);
|
||||
Result Delete(const std::string &path, const Params ¶ms);
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms);
|
||||
Result Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms, Progress progress);
|
||||
|
||||
Result Options(const std::string &path);
|
||||
Result Options(const std::string &path, const Headers &headers);
|
||||
@@ -9172,6 +9182,23 @@ inline Result ClientImpl::Delete(const std::string &path,
|
||||
progress);
|
||||
}
|
||||
|
||||
inline Result ClientImpl::Delete(const std::string &path, const Params ¶ms) {
|
||||
return Delete(path, Headers(), params);
|
||||
}
|
||||
|
||||
inline Result ClientImpl::Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms) {
|
||||
auto query = detail::params_to_query_str(params);
|
||||
return Delete(path, headers, query, "application/x-www-form-urlencoded");
|
||||
}
|
||||
|
||||
inline Result ClientImpl::Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms, Progress progress) {
|
||||
auto query = detail::params_to_query_str(params);
|
||||
return Delete(path, headers, query, "application/x-www-form-urlencoded",
|
||||
progress);
|
||||
}
|
||||
|
||||
inline Result ClientImpl::Options(const std::string &path) {
|
||||
return Options(path, Headers());
|
||||
}
|
||||
@@ -10627,6 +10654,17 @@ inline Result Client::Delete(const std::string &path, const Headers &headers,
|
||||
Progress progress) {
|
||||
return cli_->Delete(path, headers, body, content_type, progress);
|
||||
}
|
||||
inline Result Client::Delete(const std::string &path, const Params ¶ms) {
|
||||
return cli_->Delete(path, params);
|
||||
}
|
||||
inline Result Client::Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms) {
|
||||
return cli_->Delete(path, headers, params);
|
||||
}
|
||||
inline Result Client::Delete(const std::string &path, const Headers &headers,
|
||||
const Params ¶ms, Progress progress) {
|
||||
return cli_->Delete(path, headers, params, progress);
|
||||
}
|
||||
inline Result Client::Options(const std::string &path) {
|
||||
return cli_->Options(path);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user