Kea 2.7.6
header_context.h
Go to the documentation of this file.
1// Copyright (C) 2016-2024 Internet Systems Consortium, Inc. ("ISC")
2//
3// This Source Code Form is subject to the terms of the Mozilla Public
4// License, v. 2.0. If a copy of the MPL was not distributed with this
5// file, You can obtain one at http://mozilla.org/MPL/2.0/.
6
7#ifndef HTTP_HEADER_CONTEXT_H
8#define HTTP_HEADER_CONTEXT_H
9
10#include <boost/lexical_cast.hpp>
11#include <cstdint>
12#include <string>
13#include <vector>
14
15namespace isc {
16namespace http {
17
21 std::string name_;
22
24 std::string value_;
25
30 : name_(), value_() {
31 }
32
37 HttpHeaderContext(const std::string& name, const std::string& value)
38 : name_(name), value_(value) {
39 }
40
45 HttpHeaderContext(const std::string& name, const int64_t value)
46 : name_(name), value_(boost::lexical_cast<std::string>(value)) {
47 }
48};
49
51typedef std::vector<HttpHeaderContext> HttpHeaderContexts;
52
53} // namespace http
54} // namespace isc
55
56#endif
std::vector< HttpHeaderContext > HttpHeaderContexts
Collection of HTTP header contexts.
Defines the logger used by the top-level component of kea-lfc.
std::string value_
Header value.
std::string name_
Header name.
HttpHeaderContext(const std::string &name, const int64_t value)
Constructor.
HttpHeaderContext(const std::string &name, const std::string &value)
Constructor.