/proc/self/cwd/source/common/http/date_provider.h
Line | Count | Source |
1 | | #pragma once |
2 | | |
3 | | #include "envoy/common/pure.h" |
4 | | #include "envoy/http/header_map.h" |
5 | | |
6 | | namespace Envoy { |
7 | | namespace Http { |
8 | | |
9 | | /** |
10 | | * Fills headers with a date header. |
11 | | */ |
12 | | class DateProvider { |
13 | | public: |
14 | 11.0k | virtual ~DateProvider() = default; |
15 | | |
16 | | /** |
17 | | * Set the Date header potentially using a cached value. |
18 | | * @param headers supplies the headers to fill. |
19 | | */ |
20 | | virtual void setDateHeader(ResponseHeaderMap& headers) PURE; |
21 | | }; |
22 | | |
23 | | } // namespace Http |
24 | | } // namespace Envoy |