mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
yhook: add SendResult() function to simplify result output
Origin commit data
------------------
Commit: b48c1d6551
Author: vanhofen <vanhofen@gmx.de>
Date: 2016-02-21 (Sun, 21 Feb 2016)
Origin message was:
------------------
- yhook: add SendResult() function to simplify result output
This commit is contained in:
@@ -194,6 +194,7 @@ public:
|
||||
void SendHTMLFooter(void);
|
||||
void SendOk(void);
|
||||
void SendError(std::string error = "");
|
||||
void SendResult(std::string _content);
|
||||
void SendFile(const std::string& url) {NewURL = url; status = HANDLED_SENDFILE;}
|
||||
void SendRedirect(const std::string& url) {httpStatus=HTTP_MOVED_TEMPORARILY; NewURL = url; status = HANDLED_REDIRECTION;}
|
||||
void SendRewrite(const std::string& url) {NewURL = url; status = HANDLED_REWRITE;}
|
||||
|
Reference in New Issue
Block a user