45 static void destroy();
70 std::string
start(std::string sessionId, std::optional<unsigned long> keepalive = std::nullopt);
117 [[nodiscard]]
bool isSet(std::string
const& key)
const;
128 std::any
operator[](std::string
const& key)
const;
136 void set(std::string key,
const std::any& value);
149 void set(std::string key,
char const* value) {
150 set(std::move(key), std::make_any<std::string>(value));
164 void set(std::string key, T
const& value) {
165 set(std::move(key), std::any(value));
173 void unset(std::string
const& key);
187 [[nodiscard]] std::string
getID()
const;
Structure for creating Cookie objects. Content can be set by using a constructor.
Session(Connection &connection)
std::any operator[](std::string const &key) const
void set(std::string key, char const *value)
void set(std::string key, const std::any &value)
std::string start(std::string sessionId, std::optional< unsigned long > keepalive=std::nullopt)
void set(std::string key, T const &value)
std::string getID() const
void unset(std::string const &key)
bool isSet(std::string const &key) const
Macros for frequently used patterns.
#define NAWA_DEFAULT_DESTRUCTOR_DEF(Class)
#define NAWA_PRIVATE_DATA()