revert RequestFunction

This commit is contained in:
2026-05-26 21:37:21 +03:00
parent a2093e24a6
commit 34b55de561
2 changed files with 2 additions and 7 deletions
+2 -2
View File
@@ -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; Endpoint ep;
if (!ep.create(path)) return false; if (!ep.create(path)) return false;
ep.method = method; 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; unhandled = functor;
} }
-5
View File
@@ -210,11 +210,6 @@ public:
PIP_EXPORT const char * methodName(Method m); PIP_EXPORT const char * methodName(Method m);
//! \~english Request handler used by registered routes and fallback processing.
//! \~russian Обработчик запроса, используемый зарегистрированными маршрутами и fallback-обработкой.
using RequestFunction = std::function<PIHTTP::MessageMutable(const PIHTTP::MessageConst &)>;
}; // namespace PIHTTP }; // namespace PIHTTP