Last change
on this file since 26 was 26, checked in by cheese, 12 years ago |
#1 add function to reset request and response
|
File size:
749 bytes
|
Rev | Line | |
---|
[5] | 1 | /**
|
---|
| 2 | * CRXHttpRequest.h
|
---|
| 3 | */
|
---|
| 4 | #ifndef __CRXHTTPREQUEST_H__
|
---|
| 5 | #define __CRXHTTPREQUEST_H__
|
---|
| 6 |
|
---|
| 7 | #include "CRXHttpMessage.h"
|
---|
| 8 |
|
---|
| 9 | class CRXHttpRequest : public CRXHttpMessage
|
---|
| 10 | {
|
---|
| 11 | private:
|
---|
| 12 | std::string mMethod;
|
---|
| 13 | std::string mUrl;
|
---|
| 14 |
|
---|
| 15 | std::string mProtocol;
|
---|
| 16 | std::string mHost;
|
---|
| 17 | int mPort;
|
---|
| 18 |
|
---|
| 19 | public:
|
---|
| 20 | CRXHttpRequest (void);
|
---|
[26] | 21 | ~CRXHttpRequest (void);
|
---|
[5] | 22 |
|
---|
| 23 | private:
|
---|
| 24 | void Parse (void);
|
---|
[26] | 25 | void Reset (void);
|
---|
[5] | 26 |
|
---|
| 27 | public:
|
---|
[24] | 28 | void SetHeader (const char * aHttpRequest);
|
---|
| 29 | std::string GetHeader (void) const;
|
---|
[5] | 30 |
|
---|
| 31 | CRXHttpRequest & operator = (const char * aHttpRequest);
|
---|
| 32 |
|
---|
| 33 | public:
|
---|
| 34 | std::string GetURL (void) const;
|
---|
| 35 | std::string GetHost (void) const;
|
---|
| 36 | int GetPort (void) const;
|
---|
| 37 | };
|
---|
| 38 |
|
---|
| 39 | #endif // #ifndef __CRXHTTPREQUEST_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.