1 /*
2  * Copyright (c) 2022 Huawei Device Co., Ltd.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
16 #ifndef HTTP_CACHE_CONSTANT_H
17 #define HTTP_CACHE_CONSTANT_H
18 
19 static constexpr const int DECIMAL = 10;
20 static constexpr const char *SPLIT = ", ";
21 static constexpr const char EQUAL = '=';
22 
23 static constexpr const char *NO_CACHE = "no-cache";
24 static constexpr const char *NO_STORE = "no-store";
25 static constexpr const char *NO_TRANSFORM = "no-transform";
26 static constexpr const char *ONLY_IF_CACHED = "only-if-cached";
27 static constexpr const char *MAX_AGE = "max-age";
28 static constexpr const char *MAX_STALE = "max-stale";
29 static constexpr const char *MIN_FRESH = "min-fresh";
30 static constexpr const char *CACHE_CONTROL = "cache-control";
31 static constexpr const char *IF_MODIFIED_SINCE = "if-modified-since";
32 static constexpr const char *IF_NONE_MATCH = "if-none-match";
33 
34 static constexpr const char *MUST_REVALIDATE = "must-revalidate";
35 static constexpr const char *PUBLIC = "public";
36 static constexpr const char *PRIVATE = "private";
37 static constexpr const char *PROXY_REVALIDATE = "proxy-revalidate";
38 static constexpr const char *S_MAXAGE = "s-maxage";
39 static constexpr const char *EXPIRES = "expires";
40 static constexpr const char *LAST_MODIFIED = "last-modified";
41 static constexpr const char *ETAG = "etag";
42 static constexpr const char *AGE = "age";
43 static constexpr const char *DATE = "date";
44 
45 static constexpr const int INVALID_TIME = -1;
46 
47 #endif /* HTTP_CACHE_CONSTANT_H */
48