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
14
namespace
isc
{
15
namespace
http {
16
22
struct
HttpResponseContext
{
24
unsigned
int
http_version_major_
;
26
unsigned
int
http_version_minor_
;
28
unsigned
int
status_code_
;
30
std::string
phrase_
;
32
HttpHeaderContexts
headers_
;
34
std::string
body_
;
35
};
36
38
typedef
boost::shared_ptr<HttpResponseContext>
HttpResponseContextPtr
;
39
40
}
// end of namespace http
41
}
// end of namespace isc
42
43
#endif
// endif HTTP_RESPONSE_CONTEXT_H
header_context.h
isc::http::HttpHeaderContexts
std::vector< HttpHeaderContext > HttpHeaderContexts
Collection of HTTP header contexts.
Definition
header_context.h:51
isc::http::HttpResponseContextPtr
boost::shared_ptr< HttpResponseContext > HttpResponseContextPtr
Pointer to the HttpResponseContext.
Definition
response_context.h:38
isc
Defines the logger used by the top-level component of kea-lfc.
Definition
agent_parser.cc:148
isc::http::HttpResponseContext
HTTP response context.
Definition
response_context.h:22
isc::http::HttpResponseContext::body_
std::string body_
HTTP request body.
Definition
response_context.h:34
isc::http::HttpResponseContext::status_code_
unsigned int status_code_
HTTP status code.
Definition
response_context.h:28
isc::http::HttpResponseContext::headers_
HttpHeaderContexts headers_
Collection of HTTP headers.
Definition
response_context.h:32
isc::http::HttpResponseContext::http_version_major_
unsigned int http_version_major_
HTTP major version number.
Definition
response_context.h:24
isc::http::HttpResponseContext::http_version_minor_
unsigned int http_version_minor_
HTTP minor version number.
Definition
response_context.h:26
isc::http::HttpResponseContext::phrase_
std::string phrase_
HTTP status phrase.
Definition
response_context.h:30
src
lib
http
response_context.h
Generated on Thu Dec 5 2024 14:11:31 for Kea by
1.10.0