MythTV
master
|
#include <mythhttprewrite.h>
Static Public Member Functions | |
static HTTPResponse | RewriteFile (const HTTPRequest2 &Request, const QString &File) |
A convenience method to seemlessly redirect requests for files to a context specific file. More... | |
static HTTPResponse | RewriteToSPA (const HTTPRequest2 &Request, const QString &File) |
A convenience method to seemlessly redirect requests to a Single Page web app (SPA) More... | |
Definition at line 7 of file mythhttprewrite.h.
|
static |
A convenience method to seemlessly redirect requests for files to a context specific file.
e.g. we want requests for /main.js to be served from /apps/backend/main.js
Definition at line 22 of file mythhttprewrite.cpp.
Referenced by run_backend(), and run_setup_webserver().
|
static |
A convenience method to seemlessly redirect requests to a Single Page web app (SPA)
e.g. we want all requests not handled by API or static methods to be sent into the web app
Definition at line 50 of file mythhttprewrite.cpp.
Referenced by run_backend(), and run_setup_webserver().