From 34b55de561ea4ccd4e1a44fc2eb3e8ae04839b3f Mon Sep 17 00:00:00 2001 From: peri4 Date: Tue, 26 May 2026 21:37:21 +0300 Subject: [PATCH] revert RequestFunction --- libs/http_server/pihttpserver.cpp | 4 ++-- libs/main/http_common/pihttptypes.h | 5 ----- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/libs/http_server/pihttpserver.cpp b/libs/http_server/pihttpserver.cpp index eb4d11ec..23d8f463 100644 --- a/libs/http_server/pihttpserver.cpp +++ b/libs/http_server/pihttpserver.cpp @@ -52,7 +52,7 @@ PIHTTPServer::~PIHTTPServer() { } -bool PIHTTPServer::registerPath(const PIString & path, PIHTTP::Method method, PIHTTP::RequestFunction functor) { +bool PIHTTPServer::registerPath(const PIString & path, PIHTTP::Method method, RequestFunction functor) { Endpoint ep; if (!ep.create(path)) return false; ep.method = method; @@ -62,7 +62,7 @@ bool PIHTTPServer::registerPath(const PIString & path, PIHTTP::Method method, PI } -void PIHTTPServer::registerUnhandled(PIHTTP::RequestFunction functor) { +void PIHTTPServer::registerUnhandled(RequestFunction functor) { unhandled = functor; } diff --git a/libs/main/http_common/pihttptypes.h b/libs/main/http_common/pihttptypes.h index a105ecf0..cb8cf15e 100644 --- a/libs/main/http_common/pihttptypes.h +++ b/libs/main/http_common/pihttptypes.h @@ -210,11 +210,6 @@ public: PIP_EXPORT const char * methodName(Method m); -//! \~english Request handler used by registered routes and fallback processing. -//! \~russian Обработчик запроса, используемый зарегистрированными маршрутами и fallback-обработкой. -using RequestFunction = std::function; - - }; // namespace PIHTTP