From 039a47e3474d5667d295984f330e876aef309eac Mon Sep 17 00:00:00 2001 From: Carson Labrado Date: Tue, 5 Apr 2022 16:03:20 +0000 Subject: 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 --- http/http_response.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'http/http_response.hpp') 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(); } -- cgit v1.2.3