mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-05-02 13:47:56 +02:00
Added a new data map property to Request for storing stuff like a session object, etc.
This commit is contained in:
parent
714eb02819
commit
e19bd5b7ef
@ -87,6 +87,8 @@ void Request::reset() {
|
|||||||
body.clear();
|
body.clear();
|
||||||
footer.clear();
|
footer.clear();
|
||||||
compiled_body.clear();
|
compiled_body.clear();
|
||||||
|
|
||||||
|
data.clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
std::string Request::parser_get_path() {
|
std::string Request::parser_get_path() {
|
||||||
|
@ -3,6 +3,9 @@
|
|||||||
|
|
||||||
#include <mutex>
|
#include <mutex>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <map>
|
||||||
|
|
||||||
|
#include "core/object.h"
|
||||||
|
|
||||||
#include "handler_instance.h"
|
#include "handler_instance.h"
|
||||||
|
|
||||||
@ -30,6 +33,8 @@ public:
|
|||||||
|
|
||||||
bool connection_closed;
|
bool connection_closed;
|
||||||
|
|
||||||
|
std::map<std::string, Object*> data;
|
||||||
|
|
||||||
virtual const std::string &get_cookie(const std::string &key);
|
virtual const std::string &get_cookie(const std::string &key);
|
||||||
virtual void add_cookie(const ::Cookie &cookie);
|
virtual void add_cookie(const ::Cookie &cookie);
|
||||||
virtual void remove_cookie(const std::string &key);
|
virtual void remove_cookie(const std::string &key);
|
||||||
|
Loading…
Reference in New Issue
Block a user