SourcePro® 2025.1 |
SourcePro® API Reference Guide |
Abstract base class from which all HTTP header classes derive. More...
#include <rw/http/RWHttpHeaderBase.h>
Public Member Functions | |
virtual bool | append (const RWCString &str) |
virtual RWCString | asString (void) const |
RWCString | getLabel (void) const |
RWHttpHeaderType | getType (void) const |
virtual RWCString | getValue (void) const =0 |
Static Public Member Functions | |
static unsigned | hash (const RWHttpHeaderBase &) |
Protected Member Functions | |
RWHttpHeaderBase (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER) | |
RWHttpHeaderBase (void) | |
Related Symbols | |
(Note that these are not member symbols.) | |
std::weak_ordering | operator (const RWHttpHeaderBase &lhs, const RWHttpHeaderBase &rhs) |
bool | operator== (const RWHttpHeaderBase &lhs, const RWHttpHeaderBase &rhs) |
RWHttpHeaderBase is an abstract base class for all concrete header classes. These classes are helpers that ease header attachment and formatting to various HTTP requests.
|
inlineprotected |
Constructs a default RWHttpHeaderBase as part of a specific HTTP header object. The label of the header is set to an empty string, and the header type is set to RW_HTTP_ENTITY_HEADER.
|
inlineexplicitprotected |
Constructs an RWHttpHeaderBase as part of a specific HTTP header object. The label of the header is set to label, and the header type is set to type. The RWCString should contain 7-bit US-ASCII data.
|
virtual |
Attempts to append str to the header as a new set of values, if the header supports appending of headers. Append returns true
if it is successful in appending the headers. Otherwise it returns false
. This function also returns false
if it is not overridden in a derived class. The RWCString should contain 7-bit US-ASCII data.
|
virtual |
|
inline |
Returns the internal label of the header. The RWCString should contain 7-bit US-ASCII data.
|
inline |
Returns the internal type of the header.
|
inlinepure virtual |
Returns the value associated with the label of the header. This is a pure virtual function, so it must be overridden by a derived class. The RWCString should contain 7-bit US-ASCII data.
Implemented in RWHttpBasicAuthorizationHeader, RWHttpContentLengthHeader, RWHttpContentTypeHeader, RWHttpDateHeader, RWHttpEntityTagHeaderBase, RWHttpGenericHeader, RWHttpHostHeader, and RWHttpRangeHeader.
|
inlinestatic |
Returns the hash value of h.
|
related |
Compares the label, value and type of lhs and rhs.
|
related |
Returns true
if lhs and rhs have the same label, value and type. Otherwise, returns false
. Label comparison is case-insensitive.
Copyright © 2025 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |