Web framework C++  2.0.0
Simple web framework on c++ designed to easily create web pages, etc
cookie_entity_http.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 #include "entity.h"
5 
12 class CookieEntityHttp : public Entity {
13  std::string value;
14  bool httpOnly;
15 public:
22  explicit CookieEntityHttp(const char * value);
23 
30  std::string toString() override;
31 
38  void setValue(std::string value) override;
39 
46  std::unique_ptr<Entity> clone() override;
47 };
Default CookieEntity with http only feature.
Definition: cookie_entity_http.h:12
std::string toString() override
Cloneable interface of object wth value and serializable method.
Definition: entity.h:10
CookieEntityHttp(const char *value)
std::unique_ptr< Entity > clone() override
void setValue(std::string value) override