summaryrefslogtreecommitdiff
path: root/http/http_response.hpp
diff options
context:
space:
mode:
authorCarson Labrado <clabrado@google.com>2022-04-05 19:03:20 +0300
committerEd Tanous <ed@tanous.net>2022-05-17 19:49:24 +0300
commit039a47e3474d5667d295984f330e876aef309eac (patch)
tree7d953c4e6e4a596a393534077aca08f66239cdd0 /http/http_response.hpp
parent88a03c55257786d1c3e659b00531ffce071ea324 (diff)
downloadbmcweb-039a47e3474d5667d295984f330e876aef309eac.tar.xz
Add callback for response handling to HttpClient
Adds sendDataWithCallback() which allows the caller to include a callback specifying how to handle the response to that request. This will be utilized for Redfish Aggregation including returning the responses received when forwarding requests to satellite BMCs. Change-Id: I93826c8b254a5f28a982295d4145453352a90fae Signed-off-by: Carson Labrado <clabrado@google.com>
Diffstat (limited to 'http/http_response.hpp')
-rw-r--r--http/http_response.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/http/http_response.hpp b/http/http_response.hpp
index 58a802915b..6c842d742c 100644
--- a/http/http_response.hpp
+++ b/http/http_response.hpp
@@ -76,7 +76,7 @@ struct Response
return stringResponse->result();
}
- unsigned resultInt()
+ unsigned resultInt() const
{
return stringResponse->result_int();
}