SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Helper class that defines an HTTP Content-Length entity header. More...
#include <rw/http/RWHttpContentLengthHeader.h>
Public Member Functions | |
RWHttpContentLengthHeader (void) | |
RWHttpContentLengthHeader (int value) | |
RWHttpContentLengthHeader (const RWHttpGenericHeader &hdr) | |
void | setValue (int value) |
int | getLength () const |
RWCString | value (void) const |
RWCString | getValue (void) const |
RWHttpContentLengthHeader is a specialization class of RWHttpHeaderBase. It is a helper class that formats its contents as Content-Length
: header_value
, where header_value
is the length in bytes of an HTTP command's body information.
RWHttpContentLengthHeader::RWHttpContentLengthHeader | ( | void | ) | [inline] |
Constructs a default RWHttpContentLengthHeader object with the label Content-Length
and a value of 0
.
RWHttpContentLengthHeader::RWHttpContentLengthHeader | ( | int | value | ) | [inline] |
Constructs an RWHttpContentLengthHeader object with the label Content-Length
and a value of value.
RWHttpContentLengthHeader::RWHttpContentLengthHeader | ( | const RWHttpGenericHeader & | hdr | ) |
Constructs an RWHttpContentLengthHeader object from an RWHttpGenericHeader that represents a Content-Length
HTTP header. If the RWHttpGenericHeader does not represent a Content-Length
HTTP header or if the value of the RWHttpGenericHeader does not conform to the formatting of a Content-Length
value, an RWHttpHeaderParseError exception is thrown.
int RWHttpContentLengthHeader::getLength | ( | ) | const [inline] |
Returns the internal length of the header.
RWCString RWHttpContentLengthHeader::getValue | ( | void | ) | const [virtual] |
Returns the internal value as an RWCString. The RWCString should contain 7-bit US-ASCII data.
Implements RWHttpHeaderBase.
void RWHttpContentLengthHeader::setValue | ( | int | value | ) | [inline] |
Assigns internal value to value.
RWCString RWHttpContentLengthHeader::value | ( | void | ) | const [inline] |
© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.