[http_request] Pass parameters by const reference to reduce flash usage (#11184)

This commit is contained in:
J. Nick Koston
2025-10-13 10:53:11 -10:00
committed by GitHub
parent 8d8fcfeda2
commit 6372099df3
7 changed files with 17 additions and 14 deletions

View File

@@ -17,8 +17,9 @@ namespace http_request {
static const char *const TAG = "http_request.host";
std::shared_ptr<HttpContainer> HttpRequestHost::perform(std::string url, std::string method, std::string body,
std::list<Header> request_headers,
std::shared_ptr<HttpContainer> HttpRequestHost::perform(const std::string &url, const std::string &method,
const std::string &body,
const std::list<Header> &request_headers,
std::set<std::string> response_headers) {
if (!network::is_connected()) {
this->status_momentary_error("failed", 1000);