42 size_t maxAge_sec = std::string::npos,
43 const char * domain =
nullptr,
44 const char * path =
nullptr,
54 void setValue(std::string value)
override;
70 std::unique_ptr<Entity>
clone()
override;
std::string toString() override
CookieEntity(const char *value, time_t expires=-1, size_t maxAge_sec=std::string::npos, const char *domain=nullptr, const char *path=nullptr, bool httpOnly=false)
Class wrapper for Cookies. Allow you adjust parameters od each http cookie. Used by CookieMiddleware...
Definition: cookie_entity.h:14
std::unique_ptr< Entity > clone() override
void setValue(std::string value) override
Cloneable interface of object wth value and serializable method.
Definition: entity.h:10