SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Encapsulates reading an HTTP message body from an RWCString. More...
#include <rw/http/RWHttpRequestStringBody.h>
Public Member Functions | |
RWHttpRequestStringBody () | |
RWHttpRequestStringBody (const RWHttpRequestStringBody &body) | |
RWHttpRequestStringBody (const RWCString &body) | |
virtual | ~RWHttpRequestStringBody () |
virtual RWHttpRequestBody * | clone () const |
virtual int | getContentLength () const |
virtual RWCString | getNextChunk (size_t size) |
RWCString | getString () const |
virtual bool | isValid () const |
void | setString (const RWCString &str) |
Public Member Functions inherited from RWHttpRequestBody | |
RWHttpRequestBody () | |
virtual | ~RWHttpRequestBody () |
RWHttpRequestStringBody defines how to read a standard message body.
|
inline |
Constructs a default RWHttpRequestStringBody object.
|
inline |
Copy constructor.
|
inline |
Constructs an RWHttpRequestStringBody from a string.
|
virtual |
Virtual destructor.
|
virtual |
Creates a copy of the RWHttpRequestStringBody on the heap and returns a pointer to the newly allocated memory.
Implements RWHttpRequestBody.
|
virtual |
Returns the total length of the body object, if known. Returns -1
if the Content-Length
cannot be determined.
Content-Length
is sent to a server with version less than HTTP/1.1. Implements RWHttpRequestBody.
|
virtual |
Reads and returns the next size bytes from the body as an RWCString. If size bytes are not available, the remainder of the string is returned. Returns an empty string when no more data can be read.
Implements RWHttpRequestBody.
|
inline |
Returns the internal body representation as an RWCString.
|
virtual |
Always returns true
for this derived class.
Implements RWHttpRequestBody.
Copyright © 2014 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.
Provide feedback to Rogue Wave about its documentation.