Helper class that defines an HTTP Host header.
More...
#include <rw/http/RWHttpHostHeader.h>
RWHttpHostHeader is a specialization class of RWHttpHeaderBase that defines the HTTP Host header. It is a helper class that formats its contents as Host:
uri
, where uri
is the host machine to contact.
◆ RWHttpHostHeader() [1/3]
RWHttpHostHeader::RWHttpHostHeader |
( |
| ) |
|
|
inline |
Constructs a default RWHttpHostHeader object with the header label set to Host
and its associated value set to an empty string.
◆ RWHttpHostHeader() [2/3]
RWHttpHostHeader::RWHttpHostHeader |
( |
const RWCString & | host, |
|
|
int | port = 80 ) |
|
inline |
Constructs an RWHttpHostHeader object with the header label set to Host
and its associated host set to host, and its associated port set to port. The RWCString should contain 7-bit US-ASCII data.
◆ RWHttpHostHeader() [3/3]
◆ getHost()
RWCString RWHttpHostHeader::getHost |
( |
| ) |
const |
|
inline |
Returns a copy of the internal host value. The RWCString should contain 7-bit US-ASCII data.
◆ getPort()
int RWHttpHostHeader::getPort |
( |
| ) |
const |
|
inline |
Returns a copy of the internal port value.
◆ getValue()
virtual RWCString RWHttpHostHeader::getValue |
( |
| ) |
const |
|
virtual |
◆ setHost()
void RWHttpHostHeader::setHost |
( |
const RWCString & | host | ) |
|
|
inline |
Assigns host to the internal host value. The RWCString should contain 7-bit US-ASCII data.
◆ setPort()
void RWHttpHostHeader::setPort |
( |
int | port | ) |
|
|
inline |
Assigns port to the internal port value.