source: cheroxy/trunk/include/CRXHttpMessage.h@ 26

Last change on this file since 26 was 26, checked in by cheese, 11 years ago

#1 add function to reset request and response

File size: 630 bytes
Line 
1/**
2 * CRXHttpMessage.h
3 */
4#ifndef __CRXHTTPMESSAGE_H__
5#define __CRXHTTPMESSAGE_H__
6
7#include <string>
8
9using namespace std;
10
11class CRXHttpMessage
12{
13protected:
14 std::string mHttpMessage;
15 std::string mHttpVersion;
16
17public:
18 CRXHttpMessage (void);
19 virtual ~CRXHttpMessage (void);
20
21protected:
22 virtual void Parse (void);
23 virtual void Reset (void);
24
25public:
26 void SetMessage (const char * aHttpMessage);
27 std::string GetMessage (void) const;
28
29 void ResetMessage (void);
30
31 virtual CRXHttpMessage & operator = (const char * aHttpMessage);
32};
33
34#endif // #ifndef __CRXHTTPMESSAGE_H__
Note: See TracBrowser for help on using the repository browser.