SourcePro C++ 12.0 |
SourcePro® C++ API Reference Guide |
SourcePro C++ Documentation Home |
Helper class that describes a Byte Range for requesting a portion of a document. More...
#include <rw/http/RWHttpRange.h>
Public Types | |
enum | rangeEnd { head, tail } |
Public Member Functions | |
RWHttpRange () | |
RWHttpRange (const RWCString &range) | |
RWHttpRange (size_t offset, size_t length=0) | |
RWHttpRange (size_t length, rangeEnd end) | |
void | setRange (const RWCString &range) |
void | setRange (size_t offset, size_t length) |
void | setRange (size_t length, rangeEnd end) |
RWCString | getValue () const |
RWHttpRange represents an HTTP/1.1 format range for requesting portions of a document.
RWHttpRange::RWHttpRange | ( | ) | [inline] |
Constructs a default RWHttpRange object where the range is the complete document.
RWHttpRange::RWHttpRange | ( | const RWCString & | range | ) | [inline] |
Constructs an RWHttpRange object from an RWCString. The RWCString must be a properly formatted range according to RFC 2616. The RWCString should contain 7-bit US-ASCII data.
RWHttpRange::RWHttpRange | ( | size_t | offset, | |
size_t | length = 0 | |||
) | [inline] |
Constructs an RWHttpRange object where the range starts at offset and continues for length bytes. A length of 0
means that the range continues to the end of the document.
RWHttpRange::RWHttpRange | ( | size_t | length, | |
rangeEnd | end | |||
) | [inline] |
Constructs an RWHttpRange object where the range extends length bytes from end.
RWCString RWHttpRange::getValue | ( | void | ) | const [inline] |
void RWHttpRange::setRange | ( | size_t | length, | |
rangeEnd | end | |||
) |
Sets the range to start at end and to extend for length bytes.
void RWHttpRange::setRange | ( | size_t | offset, | |
size_t | length | |||
) |
Sets the range to start at offset and to continue for length bytes.
© 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.