Kea 2.7.5
response_context.h
Go to the documentation of this file.
1// Copyright (C) 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_RESPONSE_CONTEXT_H
8#define HTTP_RESPONSE_CONTEXT_H
9
10#include <http/header_context.h>
11#include <boost/shared_ptr.hpp>
12#include <string>
13#include <vector>
14
15namespace isc {
16namespace http {
17
25 unsigned int http_version_major_;
27 unsigned int http_version_minor_;
29 unsigned int status_code_;
31 std::string phrase_;
33 std::vector<HttpHeaderContext> headers_;
35 std::string body_;
36};
37
39typedef boost::shared_ptr<HttpResponseContext> HttpResponseContextPtr;
40
41} // end of namespace http
42} // end of namespace isc
43
44#endif // endif HTTP_RESPONSE_CONTEXT_H
boost::shared_ptr< HttpResponseContext > HttpResponseContextPtr
Pointer to the HttpResponseContext.
Defines the logger used by the top-level component of kea-lfc.
std::string body_
HTTP request body.
unsigned int status_code_
HTTP status code.
unsigned int http_version_major_
HTTP major version number.
unsigned int http_version_minor_
HTTP minor version number.
std::string phrase_
HTTP status phrase.
std::vector< HttpHeaderContext > headers_
Collection of HTTP headers.