SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Helper class that defines an HTTP Range header. More...
#include <rw/http/RWHttpRangeHeader.h>
Public Member Functions | |
RWHttpRangeHeader () | |
RWHttpRangeHeader (const RWHttpRange &range) | |
RWHttpRangeHeader (const RWHttpGenericHeader &hdr) | |
void | addRange (const RWHttpRange &range) |
virtual RWCString | getValue () const |
RWHttpRangeHeader is a specialization class of RWHttpHeaderBase that defines the HTTP Range header. It is a helper class that formats its contents as Range:
bytes=start_range
-
stop_range
.
RWHttpRangeHeader::RWHttpRangeHeader | ( | void | ) | [inline] |
Constructs a default RWHttpRangeHeader object with the header label set to Range
and its associated range request to the current length of the entity-body in bytes.
RWHttpRangeHeader::RWHttpRangeHeader | ( | const RWHttpRange & | range | ) | [inline] |
Constructs an RWHttpRangeHeader object with the header label set to Range
and its associated range request set by the RWHttpRange object range.
RWHttpRangeHeader::RWHttpRangeHeader | ( | const RWHttpGenericHeader & | hdr | ) |
Constructs an RWHttpRangeHeader from a RWHttpGenericHeader. If the RWHttpGenericHeader is not a properly formatted HTTP Range
Header
, an RWHttpHeaderParseError exception is thrown.
void RWHttpRangeHeader::addRange | ( | const RWHttpRange & | range | ) | [inline] |
Adds a range defined by the RWHttpRange object range to the internal range list.
virtual RWCString RWHttpRangeHeader::getValue | ( | ) | const [virtual] |
Returns an RWCString representing the range request. The RWCString should contain 7-bit US-ASCII data.
Implements RWHttpHeaderBase.
© 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.