Kea 2.7.6
|
Config HTTP header. More...
#include <cfg_http_header.h>
Public Member Functions | |
CfgHttpHeader (const std::string &name, const std::string &value) | |
Constructor. | |
virtual isc::data::ElementPtr | toElement () const |
Unparses config HTTP header. | |
Public Member Functions inherited from isc::data::UserContext | |
void | contextToElement (data::ElementPtr map) const |
Merge unparse a user_context object. | |
data::ConstElementPtr | getContext () const |
Returns const pointer to the user context. | |
void | setContext (const data::ConstElementPtr &ctx) |
Sets user context. | |
Public Member Functions inherited from isc::data::CfgToElement | |
virtual | ~CfgToElement () |
Destructor. | |
Public Attributes | |
std::string | name_ |
Header name. | |
std::string | value_ |
Header value. | |
Additional Inherited Members | |
Static Public Member Functions inherited from isc::data::UserContext | |
static data::ElementPtr | toElement (data::ConstElementPtr map) |
Copy an Element map. | |
Protected Attributes inherited from isc::data::UserContext | |
data::ConstElementPtr | user_context_ |
Pointer to the user context (may be NULL) | |
Config HTTP header.
Extra headers to include in a message are configured as a list of objects of this class. At the difference of other HTTP header classes there is no numeric value.
Definition at line 24 of file cfg_http_header.h.
|
inline |
Constructor.
name | Header name. |
value | Header value. |
Definition at line 36 of file cfg_http_header.h.
|
virtual |
Unparses config HTTP header.
Implements isc::data::CfgToElement.
Definition at line 21 of file cfg_http_header.cc.
References isc::data::UserContext::contextToElement(), isc::data::Element::create(), isc::data::Element::createMap(), name_, and value_.
std::string isc::http::CfgHttpHeader::name_ |
std::string isc::http::CfgHttpHeader::value_ |