Update of /cvsroot/pclasses/pclasses2/include/pclasses/Net
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv21590/include/pclasses/Net
Modified Files:
HTTPClient.h
Log Message:
Renamed some members of HTTPResponse.
Index: HTTPClient.h
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Net/HTTPClient.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- HTTPClient.h 7 Jan 2005 13:41:23 -0000 1.1
+++ HTTPClient.h 14 Jan 2005 14:58:04 -0000 1.2
@@ -58,11 +58,11 @@
HTTPRequestHeader _header;
};
-//! HTTP Response codes
+//! HTTP Status codes
/*!
- Response codes used by the Hypertext-Transfer-Protocol.
+ Response status codes used by the Hypertext-Transfer-Protocol.
*/
-enum HTTPResponseCode {
+enum HTTPStatusCode {
HTTP_100_CONTINUE = 100,
HTTP_101_SWITCHING_PROTOCOL = 101,
HTTP_200_OK = 200,
@@ -109,19 +109,19 @@
class HTTPResponse: public IO::IODevice {
public:
- HTTPResponse(HTTPClient& client, const std::string& proto,
- int code, const std::string& resp);
+ HTTPResponse(HTTPClient& client, const std::string& protoVer,
+ int code, const std::string& reason);
~HTTPResponse() throw();
const HTTPResponseHeader& header() const throw();
HTTPResponseHeader& header() throw();
- const std::string& protocol() const throw();
+ const std::string& protocolVersion() const throw();
- int responseCode() const throw();
+ int statusCode() const throw();
- const std::string& response() const throw();
+ const std::string& reason() const throw();
private:
void _close() throw(IO::IOError);
@@ -130,9 +130,9 @@
HTTPClient* _client;
HTTPResponseHeader _header;
- std::string _proto;
- int _responseCode;
- std::string _response;
+ std::string _protoVer;
+ int _statusCode;
+ std::string _reason;
size_t _bytesRead;
size_t _contentLength;
bool _chunkedEncoding;
|