mirror of
https://github.com/Relintai/rcpp_framework.git
synced 2025-04-20 01:43:12 +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();
|
||||
footer.clear();
|
||||
compiled_body.clear();
|
||||
|
||||
data.clear();
|
||||
}
|
||||
|
||||
std::string Request::parser_get_path() {
|
||||
|
@ -3,6 +3,9 @@
|
||||
|
||||
#include <mutex>
|
||||
#include <vector>
|
||||
#include <map>
|
||||
|
||||
#include "core/object.h"
|
||||
|
||||
#include "handler_instance.h"
|
||||
|
||||
@ -30,6 +33,8 @@ public:
|
||||
|
||||
bool connection_closed;
|
||||
|
||||
std::map<std::string, Object*> data;
|
||||
|
||||
virtual const std::string &get_cookie(const std::string &key);
|
||||
virtual void add_cookie(const ::Cookie &cookie);
|
||||
virtual void remove_cookie(const std::string &key);
|
||||
|
Loading…
Reference in New Issue
Block a user