Kea 2.7.4
header_context.h
Go to the documentation of this file.
1// Copyright (C) 2016-2017 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
14namespace isc {
15namespace http {
16
19 std::string name_;
20 std::string value_;
21
26 : name_(), value_() {
27 }
28
33 HttpHeaderContext(const std::string& name, const std::string& value)
34 : name_(name), value_(value) {
35 }
36
41 HttpHeaderContext(const std::string& name, const int64_t value)
42 : name_(name), value_(boost::lexical_cast<std::string>(value)) {
43 }
44};
45
46} // namespace http
47} // namespace isc
48
49#endif
Defines the logger used by the top-level component of kea-lfc.
HttpHeaderContext(const std::string &name, const int64_t value)
Constructor.
HttpHeaderContext(const std::string &name, const std::string &value)
Constructor.