| Kea 3.0.2-git

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
15 namespace isc {
16 namespace http {
17
19 struct HttpHeaderContext {
21 std::string name_;
22
24 std::string value_;
25
29 HttpHeaderContext()
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
51 typedef std::vector<HttpHeaderContext> HttpHeaderContexts;
52
53} // namespace http
54} // namespace isc
55
56#endif
string
STL class.
isc::http
Definition auth_config.h:19
isc::http::HttpHeaderContexts
std::vector< HttpHeaderContext > HttpHeaderContexts
Collection of HTTP header contexts.
Definition header_context.h:51
isc
Defines the logger used by the top-level component of kea-lfc.
Definition agent_parser.cc:148
isc::http::HttpHeaderContext::value_
std::string value_
Header value.
Definition header_context.h:24
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext()
Constructor.
Definition header_context.h:29
isc::http::HttpHeaderContext::name_
std::string name_
Header name.
Definition header_context.h:21
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext(const std::string &name, const int64_t value)
Constructor.
Definition header_context.h:45
isc::http::HttpHeaderContext::HttpHeaderContext
HttpHeaderContext(const std::string &name, const std::string &value)
Constructor.
Definition header_context.h:37