26 lines
485 B
C++
26 lines
485 B
C++
#pragma once
|
|
|
|
// See lib/http/request.hpp
|
|
//clang-format off
|
|
#include <cstdint>
|
|
//clang-format on
|
|
|
|
#include <boost/beast/http/message.hpp>
|
|
#include <boost/beast/http/message_generator.hpp>
|
|
#include <base/types.hpp>
|
|
//
|
|
|
|
namespace base::http {
|
|
|
|
struct Response {
|
|
Response(beast::http::message_generator&& mg) : mg(std::move(mg)) {}
|
|
|
|
auto&& Release() { return std::move(mg); }
|
|
|
|
private:
|
|
friend struct Server;
|
|
beast::http::message_generator mg;
|
|
};
|
|
|
|
} // namespace base::http
|