Module: Internet Protocols Module Package: HTTP
RWHttpRangeHeader RWHttpHeaderBase
#include <rw/http/RWHttpRangeHeader.h>
RWHttpRangeHeader is a specialization class of RWHttpHeaderBase. It defines the HTTP Range Header requests. It is a helper class that formats its contents as Range: bytes=start_range - stop_range.
RWHttpRangeHeader();
Constructs a default RWHttpRangeHeader object with the header label set to Range, its associated start value set to 0, and its end value set to RW_END_OF_RANGE.
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.
RWHttpRangeHeader(const RWHttpRange& range);
Constructs an RWHttpRangeHeader object with the header label set to Range and its associated range request set by the RWHttpRange object range.
void addRange(const RWHttpRange& range);
Adds a range defined by the RWHttpRange object range to the internal range list.
virtual RWCString getValue() const;
Returns an RWCString representing the range request. The RWCString should contain 7-bit US-ASCII data.
© 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.