Line | |
---|
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 | std::string mFileExtension;
|
---|
15 |
|
---|
16 | std::string mProtocol;
|
---|
17 | std::string mHost;
|
---|
18 | int mPort;
|
---|
19 |
|
---|
20 | public:
|
---|
21 | CRXHttpRequest (void);
|
---|
22 | ~CRXHttpRequest (void);
|
---|
23 |
|
---|
24 | private:
|
---|
25 | void Parse (void);
|
---|
26 | void ParseFileExtension (void);
|
---|
27 | void Reset (void);
|
---|
28 |
|
---|
29 | public:
|
---|
30 | void SetHeader (const char * aHttpRequest);
|
---|
31 | std::string GetHeader (void) const;
|
---|
32 |
|
---|
33 | CRXHttpRequest & operator = (const char * aHttpRequest);
|
---|
34 |
|
---|
35 | public:
|
---|
36 | std::string GetURL (void) const;
|
---|
37 | std::string GetHost (void) const;
|
---|
38 | int GetPort (void) const;
|
---|
39 | std::string GetFileExtension (void) const;
|
---|
40 | };
|
---|
41 |
|
---|
42 | #endif // #ifndef __CRXHTTPREQUEST_H__ |
---|
Note:
See
TracBrowser
for help on using the repository browser.