Changeset 46 in cheroxy for trunk/include/CRXHttpResponse.h
- Timestamp:
- 11/26/12 15:23:31 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/CRXHttpResponse.h
r44 r46 5 5 #define __CRXHTTPRESPONSE_H__ 6 6 7 #include "CRXHttpMessage.h" 7 #include "CRXHttpHeader.h" 8 9 #include <vector> 8 10 9 11 #define ERROR_HTTP_RESPONSE -4000 … … 13 15 #define ERROR_HTTP_RESPONSE_FAILED_TO_PARSE_CONTENT ERROR_HTTP_RESPONSE - 4 14 16 15 class CRXHttpResponse : public CRXHttp Message17 class CRXHttpResponse : public CRXHttpHeader 16 18 { 17 19 private: 18 int mStatusCode; 19 std::string mStatusString; 20 bool mIsChunked; /* Transfer-Encoding */ 21 int mContentLength; 22 23 struct __content_body__ { 24 char * mBody; 25 int mLength; 26 } mContent; 20 int mStatusCode; 21 std::string mStatusString; 22 bool mIsChunked; /* Transfer-Encoding */ 23 unsigned int mContentLength; 24 std::vector <char> mContent; 27 25 28 26 public: … … 33 31 void Parse (void); 34 32 void Reset (void); 35 void ResetContent (void);36 33 37 34 public: … … 39 36 40 37 bool IsChunked (void) const; 41 int SetResponseAll (const char * aHttpResponse, 42 const int aResponseLength); 43 void SetHeader (const char * aHttpResponse); 38 void SetHeader (const char * aHeader); 44 39 std::string GetHeader (void) const; 45 40 int SetContent (const char * aContent,
Note:
See TracChangeset
for help on using the changeset viewer.