SourcePro® API Reference Guide

 
Loading...
Searching...
No Matches
RWHttpGenericHeader Class Reference

Helper class that defines a generic HTTP header. More...

#include <rw/http/RWHttpGenericHeader.h>

Inheritance diagram for RWHttpGenericHeader:
RWHttpHeaderBase RWHttpFromHeader RWHttpUserAgentHeader

Public Member Functions

 RWHttpGenericHeader (const RWCString &label, const RWCString &value, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpGenericHeader (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpGenericHeader (const RWHttpHeaderBase &hdr)
 
 RWHttpGenericHeader (void)
 
virtual RWCString getValue (void) const
 
void setValue (const RWCString &value)
 
- Public Member Functions inherited from RWHttpHeaderBase
virtual bool append (const RWCString &str)
 
virtual RWCString asString (void) const
 
RWCString getLabel (void) const
 
RWHttpHeaderType getType (void) const
 
bool operator!= (const RWHttpHeaderBase &) const
 
bool operator< (const RWHttpHeaderBase &hdr) const
 
bool operator== (const RWHttpHeaderBase &h) const
 

Additional Inherited Members

- Static Public Member Functions inherited from RWHttpHeaderBase
static unsigned hash (const RWHttpHeaderBase &)
 
- Protected Member Functions inherited from RWHttpHeaderBase
 RWHttpHeaderBase (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER)
 
 RWHttpHeaderBase (void)
 

Detailed Description

RWHttpGenericHeader is a specialization class of RWHttpHeaderBase. It is a helper class that formats its contents as header_label: header_value.

Constructor & Destructor Documentation

◆ RWHttpGenericHeader() [1/4]

RWHttpGenericHeader::RWHttpGenericHeader ( void )
inline

Constructs a default RWHttpGenericHeader object.

◆ RWHttpGenericHeader() [2/4]

RWHttpGenericHeader::RWHttpGenericHeader ( const RWCString & label,
RWHttpHeaderType type = RW_HTTP_ENTITY_HEADER )
inline

Constructs an RWHttpGenericHeader object with the label equal to label. The RWCString should contain 7-bit US-ASCII data.

◆ RWHttpGenericHeader() [3/4]

RWHttpGenericHeader::RWHttpGenericHeader ( const RWCString & label,
const RWCString & value,
RWHttpHeaderType type = RW_HTTP_ENTITY_HEADER )
inline

Constructs an RWHttpGenericHeader object with the label equal to label and the value equal to value. The RWCString should contain 7-bit US-ASCII data.

◆ RWHttpGenericHeader() [4/4]

RWHttpGenericHeader::RWHttpGenericHeader ( const RWHttpHeaderBase & hdr)
inline

Constructs an RWHttpGenericHeader object with the same values as hdr.

Member Function Documentation

◆ getValue()

RWCString RWHttpGenericHeader::getValue ( void ) const
inlinevirtual

Returns a copy of the internal value associated with the label. The RWCString should contain 7-bit US-ASCII data.

Implements RWHttpHeaderBase.

◆ setValue()

void RWHttpGenericHeader::setValue ( const RWCString & value)
inline

Assigns value to the internal value. The RWCString should contain 7-bit US-ASCII data.

Copyright © 2024 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved.