SourcePro C++ 13.0 |
SourcePro® C++ API Reference Guide |
Product Documentation: SourcePro C++ Documentation Home |
Encapsulates HTTP headers and a protocol reply. More...
#include <rw/http/RWHttpReply.h>
Public Member Functions | |
RWHttpReply (void) | |
RWHttpReply (const RWPortal &portal, const RWHttpRequest &request) | |
RWHttpReply (const RWHttpReply &reply) | |
RWCString | asString () const |
RWCString | getBody (void) const |
RWHttpHeaderList | getHeaders () const |
int | getMajorVersion (void) const |
int | getMinorVersion (void) const |
RWHttpRequest | getRequest (void) const |
RWHttpReply & | operator= (const RWHttpReply &reply) |
void | setBody (const RWCString &body) |
RWCString | versionAsString (void) const |
Public Member Functions inherited from RWNumReply | |
RWNumReply (void) | |
RWNumReply (const RWNumReply &r) | |
virtual | ~RWNumReply (void) |
void | clearAndDestroy (void) |
size_t | entries (void) const |
RWCString | getData (void) const |
unsigned int | getStatusCode (void) const |
bool | is1XX (void) const |
bool | is2XX (void) const |
More... | |
bool | is3XX (void) const |
More... | |
bool | is4XX (void) const |
More... | |
bool | is5XX (void) const |
More... | |
RWNumReply & | operator= (const RWNumReply &reply) |
const RWNumReplyLine & | operator[] (size_t i) const |
Public Member Functions inherited from RWReply | |
RWReply (void) | |
virtual | ~RWReply (void) |
virtual bool | isComplete (void) const |
virtual bool | isValid (void) const |
Private Member Functions | |
virtual void | readFromPortal (const RWPortal &portal) |
Friends | |
std::ostream & | operator<< (std::ostream &str, const RWHttpReply &r) |
Additional Inherited Members | |
Protected Member Functions inherited from RWNumReply | |
void | append (RWNumReplyLine &r) |
void | copy (const RWNumReply &r) |
virtual void | parse (void) |
void | readFromPortal (const RWPortal &portal) |
Protected Attributes inherited from RWReply | |
bool | complete_ |
bool | valid_ |
RWHttpReply encapsulates HTTP headers and a protocol reply. It is a subclass of RWNumReply and includes additional methods for retrieving HTTP header information.
|
inline |
Constructs a default invalid RWHttpReply object.
RWHttpReply::RWHttpReply | ( | const RWPortal & | portal, |
const RWHttpRequest & | request | ||
) |
Constructs an RWHttpReply with portal as the data source. request is a reference to the RWHttpRequest object that was sent to the server to generate the reply.
|
inline |
Copy constructor.
RWCString RWHttpReply::asString | ( | ) | const |
Returns an RWCString representing the status line and header fields for the RWHttpReply instance. The returned string does not contain the message body of the reply. The RWCString should contain 7-bit US-ASCII data.
|
inline |
Retrieves the internal body associated with this reply object.
|
inline |
Returns an RWHttpHeaderList object containing all of the headers associated with this reply.
|
inline |
Returns the HTTP major version number.
|
inline |
Returns the HTTP minor version number.
|
inline |
Returns a copy of the request that generated this reply.
RWHttpReply& RWHttpReply::operator= | ( | const RWHttpReply & | reply | ) |
Sets self to the value of reply. The previous contents of self are lost.
|
privatevirtual |
Reads data from portal to construct self. It must be overridden by derived classes.
Implements RWReply.
|
inline |
Sets the internal body object of this reply.
|
inline |
|
friend |
Outputs an RWHttpReply object to an std::ostream
using the asString() member function.
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.