Lines Matching defs:Response
43 struct Response struct
48 http::response<bmcweb::HttpBody> response;
50 nlohmann::json jsonValue;
51 using fields_type = http::header<false, http::fields>;
52 fields_type& fields() in fields()
57 const fields_type& fields() const in fields()
62 void addHeader(std::string_view key, std::string_view value) in addHeader()
67 void addHeader(http::field key, std::string_view value) in addHeader()
72 void clearHeader(http::field key) in clearHeader()
78 Response(Response&& res) noexcept : in Response() function
97 Response& operator=(Response&& r) noexcept in operator =()
128 void result(unsigned v) in result()
133 void result(http::status v) in result()
138 void copyBody(const Response& res) in copyBody()
143 http::status result() const in result()
148 unsigned resultInt() const in resultInt()
153 std::string_view reason() const in reason()
158 bool isCompleted() const noexcept in isCompleted()
163 const std::string* body() in body()
168 std::string_view getHeaderValue(std::string_view key) const in getHeaderValue()
173 std::string_view getHeaderValue(boost::beast::http::field key) const in getHeaderValue()
178 void keepAlive(bool k) in keepAlive()
183 bool keepAlive() const in keepAlive()
188 std::optional<uint64_t> size() in size()
193 void preparePayload(const boost::urls::url_view& urlView) in preparePayload()
221 void clear() in clear()
233 void setCurrentOverrideEtag(std::string_view newEtag) in setCurrentOverrideEtag()
243 std::string getCurrentEtag() const in getCurrentEtag()
265 void write(std::string&& bodyPart) in write()
270 void end() in end()
286 void setCompleteRequestHandler(std::function<void(Response&)>&& handler) in setCompleteRequestHandler()
296 std::function<void(Response&)> releaseCompleteRequestHandler() in releaseCompleteRequestHandler()
306 void setResponseEtagAndHandleNotModified() in setResponseEtagAndHandleNotModified()
322 std::optional<std::string_view> getExpectedEtag() const in getExpectedEtag()
327 void setExpectedEtag(std::string_view etag) in setExpectedEtag()
337 OpenCode openFile( in openFile()
359 bool openFd(int fd, bmcweb::EncodingType enc = bmcweb::EncodingType::Raw) in openFd()
379 std::optional<std::string> requestExpectedEtag;
380 std::optional<std::string> currentOverrideEtag;
381 bool completed = false;
382 std::function<void(Response&)> completeRequestHandler;