Kea  1.5.0
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 
14 namespace isc {
15 namespace 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
isc::http::HttpHeaderContext
HTTP header context.
Definition: header_context.h:18
boost
Definition: io_service.h:12
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext(const std::string &name, const int64_t value)
Constructor.
Definition: header_context.h:41
isc
Defines the logger used by the top-level component of kea-dhcp-ddns.
Definition: agent_parser.cc:144
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext()
Constructor.
Definition: header_context.h:25
isc::http::HttpHeaderContext::value_
std::string value_
Definition: header_context.h:20
isc::http::HttpHeaderContext::name_
std::string name_
Definition: header_context.h:19
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext(const std::string &name, const std::string &value)
Constructor.
Definition: header_context.h:33