SourcePro® 2025.1 |
SourcePro® API Reference Guide |
Helper class that defines an HTTP Content-Length entity header. More...
#include <rw/http/RWHttpContentLengthHeader.h>
Public Member Functions | |
| RWHttpContentLengthHeader (const RWHttpGenericHeader &hdr) | |
| RWHttpContentLengthHeader (int value) | |
| RWHttpContentLengthHeader (void) | |
| int | getLength () const |
| RWCString | getValue (void) const |
| void | setValue (int value) |
| RWCString | value (void) const |
Public Member Functions inherited from RWHttpHeaderBase | |
| virtual bool | append (const RWCString &str) |
| virtual RWCString | asString (void) const |
| RWCString | getLabel (void) const |
| RWHttpHeaderType | getType (void) const |
Additional Inherited Members | |
Static Public Member Functions inherited from RWHttpHeaderBase | |
| static unsigned | hash (const RWHttpHeaderBase &) |
Protected Member Functions inherited from RWHttpHeaderBase | |
| RWHttpHeaderBase (const RWCString &label, RWHttpHeaderType type=RW_HTTP_ENTITY_HEADER) | |
| RWHttpHeaderBase (void) | |
Related Symbols inherited from RWHttpHeaderBase | |
| std::weak_ordering | operator (const RWHttpHeaderBase &lhs, const RWHttpHeaderBase &rhs) |
| bool | operator== (const RWHttpHeaderBase &lhs, const RWHttpHeaderBase &rhs) |
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.
|
inline |
Constructs a default RWHttpContentLengthHeader object with the label Content-Length and a value of 0.
|
inlineexplicit |
Constructs an RWHttpContentLengthHeader object with the label Content-Length and a value of value.
|
explicit |
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.
|
inline |
Returns the internal length of the header.
|
virtual |
Returns the internal value as an RWCString. The RWCString should contain 7-bit US-ASCII data.
Implements RWHttpHeaderBase.
|
inline |
Assigns internal value to value.
|
inline |
Returns the internal value as an RWCString. The RWCString should contain 7-bit US-ASCII data.
|
Copyright © 2025 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |