aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/http/client/cookies/cookie.h
blob: ff2f299cfb6d51f8b38acbfda97c0b788ddfcf25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once

#include <util/datetime/base.h>
#include <util/generic/string.h>

namespace NHttp {
    struct TCookie {
        TString Name;
        TString Value;
        TString Domain;
        TString Path;
        TString Expires;
        int MaxAge = -1;
        bool IsSecure = false;
        bool IsHttpOnly = false;

        static TCookie Parse(const TString& header);
    };

}