revert RequestFunction
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user