Hobrasoft httpd server
Embedded HTTP server for Qt and C++
Macros
requestmapper.cpp File Reference
#include "requestmapper.h"
#include "httprequest.h"
#include "httpresponse.h"
#include "httpconnection.h"
#include "staticfilecontroller.h"
#include "httpd/controllerexample.h"

Go to the source code of this file.

Macros

#define ROUTER(adresa, trida)
 

Detailed Description

Author
Petr Bravenec petr..nosp@m.brav.nosp@m.enec@.nosp@m.hobr.nosp@m.asoft.nosp@m..cz

Definition in file requestmapper.cpp.

Macro Definition Documentation

◆ ROUTER

#define ROUTER (   adresa,
  trida 
)
Value:
if (path.startsWith(adresa)) { \
HttpRequestHandler *controller = new trida (connection()); \
controller->service(request, response); \
return; \
}