This commit is contained in:
@ -6,6 +6,7 @@
|
||||
#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> &);
|
||||
@ -16,7 +17,7 @@ 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);
|
||||
using Signature = void(std::string_view url, RequestHandler handler);
|
||||
};
|
||||
} // namespace Older
|
||||
|
||||
|
Reference in New Issue
Block a user