[http_request] Add comment explaining why start() calls perform() directly

The no-collect-headers start() overload calls perform() directly
instead of the vector start() overload to avoid ambiguity with
the deprecated std::set overload.
This commit is contained in:
J. Nick Koston
2026-02-16 18:17:53 -06:00
parent 3043ba8d89
commit 5e7b4c1e6c

View File

@@ -353,6 +353,7 @@ class HttpRequestComponent : public Component {
std::shared_ptr<HttpContainer> start(const std::string &url, const std::string &method, const std::string &body,
const std::list<Header> &request_headers) {
// Call perform() directly to avoid ambiguity with the std::set overload
return this->perform(url, method, body, request_headers, {});
}