source: cheroxy/trunk/src/CRXHttpMessage.cpp@ 26

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: 1.9 KB
RevLine 
[6]1/**
2 * CRXHttpMessage.cpp
3 */
4#ifdef _WIN32
5# pragma warning (disable:4996)
6#endif
7
8#include "CRXHttpMessage.h"
9
10CRXHttpMessage::CRXHttpMessage (void)
11{
[26]12 /*----------------------------------------------------------------*/
13 /*----------------------------------------------------------------*/
[6]14}
15
[24]16CRXHttpMessage::~CRXHttpMessage (void)
17{
[26]18 /*----------------------------------------------------------------*/
19 /*----------------------------------------------------------------*/
[24]20}
21
[6]22void
[26]23CRXHttpMessage::Parse (void)
24{
25 /*----------------------------------------------------------------*/
26 /*----------------------------------------------------------------*/
27}
28
29void
30CRXHttpMessage::Reset (void)
31{
32 /*----------------------------------------------------------------*/
33 /*----------------------------------------------------------------*/
34}
35
36void
[6]37CRXHttpMessage::SetMessage (const char * aHttpMessage)
38{
[26]39 /*----------------------------------------------------------------*/
[6]40 if (aHttpMessage == NULL)
41 return ;
42
43 mHttpMessage.assign (aHttpMessage);
44
45 this->Parse ();
[26]46 /*----------------------------------------------------------------*/
[6]47}
48
49std::string
50CRXHttpMessage::GetMessage (void) const
51{
[26]52 /*----------------------------------------------------------------*/
53 /*----------------------------------------------------------------*/
54
[6]55 return mHttpMessage;
56}
57
58void
[26]59CRXHttpMessage::ResetMessage (void)
[24]60{
[26]61 /*----------------------------------------------------------------*/
[24]62 mHttpMessage.clear ();
[26]63 /*----------------------------------------------------------------*/
[24]64}
65
[6]66CRXHttpMessage &
67CRXHttpMessage::operator = (const char * aHttpMessage)
68{
[26]69 /*----------------------------------------------------------------*/
[6]70 SetMessage (aHttpMessage);
[26]71 /*----------------------------------------------------------------*/
72
[6]73 return *this;
74}
Note: See TracBrowser for help on using the repository browser.