+ void setResponseLength(unsigned int l);
+ virtual unsigned int responseLength() const;
+
+ /**
+ * running total of body bytes received so far. Can be used
+ * to generate a completion percentage, if the response length is
+ * known.
+ */
+ unsigned int responseBytesReceived() const
+ { return _receivedBodyBytes; }
+
+ enum HTTPVersion {
+ HTTP_VERSION_UNKNOWN = 0,
+ HTTP_0_x, // 0.9 or similar
+ HTTP_1_0,
+ HTTP_1_1
+ };
+
+ HTTPVersion responseVersion() const
+ { return _responseVersion; }