You've already forked cpp-httplib
Fix #1551
This commit is contained in:
38
httplib.h
38
httplib.h
@ -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