2022-06-26 17:03:06 +02:00
|
|
|
#ifndef WEB_SERVER_COOKIE_H
|
|
|
|
#define WEB_SERVER_COOKIE_H
|
2022-06-25 01:55:54 +02:00
|
|
|
|
2022-06-26 17:03:06 +02:00
|
|
|
#include "core/ustring.h"
|
|
|
|
|
|
|
|
#include "core/reference.h"
|
|
|
|
|
|
|
|
class WebServerCookie : public Reference {
|
|
|
|
GDCLASS(WebServerCookie, Reference);
|
2022-06-25 01:55:54 +02:00
|
|
|
|
|
|
|
public:
|
2022-06-26 17:03:06 +02:00
|
|
|
String get_domain();
|
|
|
|
void set_domain(const String &val);
|
|
|
|
|
|
|
|
String get_path();
|
|
|
|
void set_path(const String &val);
|
|
|
|
|
|
|
|
String get_key();
|
|
|
|
void set_key(const String &val);
|
|
|
|
|
|
|
|
String get_value();
|
|
|
|
void set_value(const String &val);
|
|
|
|
|
|
|
|
bool get_http_only();
|
|
|
|
void set_http_only(const bool val);
|
|
|
|
|
|
|
|
bool get_secure();
|
|
|
|
void set_secure(const bool val);
|
|
|
|
|
|
|
|
void set_data(const String &p_key, const String &p_value);
|
|
|
|
|
|
|
|
WebServerCookie();
|
|
|
|
~WebServerCookie();
|
|
|
|
|
2022-06-25 01:55:54 +02:00
|
|
|
//todo date
|
|
|
|
String domain;
|
|
|
|
String path;
|
|
|
|
String key;
|
|
|
|
String value;
|
|
|
|
bool http_only;
|
|
|
|
bool secure;
|
|
|
|
|
2022-06-26 17:03:06 +02:00
|
|
|
protected:
|
|
|
|
static void _bind_methods();
|
2022-06-25 01:55:54 +02:00
|
|
|
};
|
|
|
|
|
2022-06-26 15:00:25 +02:00
|
|
|
#endif
|