source: cheroxy/trunk/include/CRXHttpRequest.h@ 46

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

#1 rename http message to http header and change way to process response content as binary

File size: 779 bytes
Line 
1/**
2 * CRXHttpRequest.h
3 */
4#ifndef __CRXHTTPREQUEST_H__
5#define __CRXHTTPREQUEST_H__
6
7#include "CRXHttpHeader.h"
8
9class CRXHttpRequest : public CRXHttpHeader
10{
11private:
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
20public:
21 CRXHttpRequest (void);
22 ~CRXHttpRequest (void);
23
24private:
25 void Parse (void);
26 void ParseFileExtension (void);
27
28public:
29 void SetHeader (const char * aHttpRequest);
30 std::string GetHeader (void) const;
31
32public:
33 std::string GetURL (void) const;
34 std::string GetHost (void) const;
35 int GetPort (void) const;
36 std::string GetFileExtension (void) const;
37};
38
39#endif // #ifndef __CRXHTTPREQUEST_H__
Note: See TracBrowser for help on using the repository browser.