Last change
on this file since 24 was 24, checked in by cheese, 12 years ago |
#1 change response, threading and proxy work-flow
|
File size:
694 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);
|
---|
| 21 |
|
---|
| 22 | private:
|
---|
| 23 | void Parse (void);
|
---|
| 24 |
|
---|
| 25 | public:
|
---|
[24] | 26 | void SetHeader (const char * aHttpRequest);
|
---|
| 27 | std::string GetHeader (void) const;
|
---|
[5] | 28 |
|
---|
| 29 | CRXHttpRequest & operator = (const char * aHttpRequest);
|
---|
| 30 |
|
---|
| 31 | public:
|
---|
| 32 | std::string GetURL (void) const;
|
---|
| 33 | std::string GetHost (void) const;
|
---|
| 34 | int GetPort (void) const;
|
---|
| 35 | };
|
---|
| 36 |
|
---|
| 37 | #endif // #ifndef __CRXHTTPREQUEST_H__
|
---|
Note:
See
TracBrowser
for help on using the repository browser.