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

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-10-14 09:53:11 +13:00
1 parent 8d8fcfeda2
commit 6372099df3
7 files changed
+17 -14

No files matched your search

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