RWIHttpReplyRWINumReplyRWIReply
Networking Tools: Thread-hot Internet Classes (int library)
containsHeader() header() |
headerEntries() headerValue() |
operator<<() operator=() |
portal() versionAsString() |
#include <rw/toolpro/httprepl.h> RWIHttpReply reply;
thr, net, int, tls (and possibly std)
RWIHttpReply is the class for all HTTP protocol reply messages. It is a subclass of RWINumReply, and provides additional methods for retrieving returned HTTP header information.
RWIHttpReply();
Constructs a default invalid RWIHttpReply object. Use of the object results in an exception being thrown.
RWIHttpReply(const RWSocketPortal& portal, int majorVerNum);
Constructs an RWIHttpReply with portal as the data source and majorVerNum as the major portion of the HTTP version number. The reply data are read until a complete reply is obtained.
RWIHttpReply(const RWIHttpReply& reply);
Creates a copy of reply.
RWIHttpReply& operator=(const RWIHttpReply& reply);
Sets self to the value of reply. The previous contents of self are lost.
RWBoolean containsHeader(const RWCString& label) const;
Returns TRUE if such a label is among the labels of the headers that have been passed back by the HTTP server.
RWIHttpGenericHeader header(size_t i) const;
Returns the header found at the passed-in index i. If the index is invalid, an exception is thrown.
size_t headerEntries() const
Returns the number of headers in the reply that have been passed back by the HTTP server.
RWCString headerValue(const RWCString& label) const;
Looks up the header identified by the label. If there is such a header, it returns the associated value of the label. Otherwise, the function returns an empty string.
RWSocketPortal portal() const
Returns the internal portal.
RWCString versionAsString() const
Returns, as an RWCString, the HTTP version number that was part of a reply message from the HTTP server.
ostream& operator<<(ostream& strm, const RWIHttpReply& r);
Outputs an RWIHttpReply object to an ostream.
Note: This class does not have an extraction (>>) operator.
©Copyright 2000, Rogue Wave Software, Inc.
Contact Rogue Wave about documentation or support issues.