http_response.hpp (9062d478d4dc89598e215e1538ba8fbb8db2cf10) | http_response.hpp (ecd6a3a20ab128ae9d3e356d6250695800dc13be) |
---|---|
1#pragma once 2#include "logging.hpp" 3#include "nlohmann/json.hpp" 4 5#include <boost/beast/http/message.hpp> 6#include <boost/beast/http/string_body.hpp> 7 8#include <optional> --- 25 unchanged lines hidden (view full) --- 34 void addHeader(boost::beast::http::field key, std::string_view value) 35 { 36 stringResponse->set(key, value); 37 } 38 39 Response() : stringResponse(response_type{}) 40 {} 41 | 1#pragma once 2#include "logging.hpp" 3#include "nlohmann/json.hpp" 4 5#include <boost/beast/http/message.hpp> 6#include <boost/beast/http/string_body.hpp> 7 8#include <optional> --- 25 unchanged lines hidden (view full) --- 34 void addHeader(boost::beast::http::field key, std::string_view value) 35 { 36 stringResponse->set(key, value); 37 } 38 39 Response() : stringResponse(response_type{}) 40 {} 41 |
42 ~Response() = default; 43 44 Response(const Response&) = delete; 45 Response(Response&&) = delete; |
|
42 Response& operator=(const Response& r) = delete; 43 44 Response& operator=(Response&& r) noexcept 45 { 46 BMCWEB_LOG_DEBUG << "Moving response containers"; 47 stringResponse = std::move(r.stringResponse); 48 r.stringResponse.emplace(response_type{}); 49 jsonValue = std::move(r.jsonValue); --- 106 unchanged lines hidden --- | 46 Response& operator=(const Response& r) = delete; 47 48 Response& operator=(Response&& r) noexcept 49 { 50 BMCWEB_LOG_DEBUG << "Moving response containers"; 51 stringResponse = std::move(r.stringResponse); 52 r.stringResponse.emplace(response_type{}); 53 jsonValue = std::move(r.jsonValue); --- 106 unchanged lines hidden --- |