Older/Base/Messages.h
amass d881848fa4
Some checks failed
Deploy / Build (push) Failing after 36s
reduce warning.
2025-06-03 15:33:23 +08:00

24 lines
754 B
C++

#ifndef __MESSAGES_H__
#define __MESSAGES_H__
#include "Core/MessageManager.h"
#include "Router/matches.hpp"
#include <boost/beast/http/string_body.hpp>
#include <boost/callable_traits/return_type.hpp>
// Signature 参数不能为移动语义
namespace Older {
struct NotifyServerChan {
using Signature = void(const boost::beast::http::request<boost::beast::http::string_body> &);
};
class HttpSession;
using HttpRequest = boost::beast::http::request<boost::beast::http::string_body>;
using RequestHandler = std::function<void(HttpSession &, const HttpRequest &, const boost::urls::matches &)>;
struct RegisterUrlHandler {
using Signature = void(std::string_view url, RequestHandler handler);
};
} // namespace Older
#endif // __MESSAGES_H__