12 #include "../framework/logger.h"
22 void setCookie(
const std::string &line, std::string domain,
27 std::string httpHeaderLine(
const std::string &domain,
28 const std::string &uri);
31 std::string getCookieVal(
const std::string &name, std::string domain);
38 void eraseCookies(
const std::string &domain);
44 bool isDirty()
const {
52 bool isExpired(
const std::string &timeval);
55 static bool less(
const std::string &tv1,
const std::string &tv2) {
56 if (tv1.size() < tv2.size())
58 if (tv1.size() > tv2.size())
69 std::map<std::string, std::vector<std::string> > &cookies() {
73 cookie_header, expiry, cache_len
76 name, value, domain, expires, path, secure, httponly, field_len
86 std::map<std::string, std::vector<std::string> > store;
90 static std::vector<std::string> cookieSplit(
const std::string &line);
94 std::string s_now =
"0";
Definition: cookiemanager.h:14
A simple logger. All classes that want to write to the global log file should inherit from this class...
Definition: logger.h:86
Logger(std::string label)
Definition: logger.h:90
Measure elapsed time during execution, for example by timer events.