source: cheroxy/trunk/include/CRXHttpRequest.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: 749 bytes
Line 
1/**
2 * CRXHttpRequest.h
3 */
4#ifndef __CRXHTTPREQUEST_H__
5#define __CRXHTTPREQUEST_H__
6
7#include "CRXHttpMessage.h"
8
9class CRXHttpRequest : public CRXHttpMessage
10{
11private:
12 std::string mMethod;
13 std::string mUrl;
14
15 std::string mProtocol;
16 std::string mHost;
17 int mPort;
18
19public:
20 CRXHttpRequest (void);
21 ~CRXHttpRequest (void);
22
23private:
24 void Parse (void);
25 void Reset (void);
26
27public:
28 void SetHeader (const char * aHttpRequest);
29 std::string GetHeader (void) const;
30
31 CRXHttpRequest & operator = (const char * aHttpRequest);
32
33public:
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.