ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/proj/trunk/Search/HttpHandler.hpp
(Generate patch)

Comparing trunk/Search/HttpHandler.hpp (file contents):
Revision 334 by Douglas Thrift, 2004-04-05T16:37:41-07:00 vs.
Revision 350 by Douglas Thrift, 2004-05-27T20:29:11-07:00

# Line 89 | Line 89 | private:
89          SSL* ssl;
90          bool tls;
91   #endif
92 <        char* buffer;
92 >        char buffer[BUFSIZ + 1];
93          bool binary;
94          stringstream page;
95          string type;
# Line 104 | Line 104 | private:
104          void error(const string& prefix, int number);
105          bool starttls();
106   #endif
107 // friends:
108        friend istream& operator>>(istream& is, code& data) { int number; is
109                >> number; data = code(number); return is; }
107   public:
108          HttpHandler();
109          ~HttpHandler();
# Line 115 | Line 112 | public:
112          istream& getline(string& line) { return std::getline(page, line); }
113          istream& getline(string& line, char end) { return std::getline(page, line,
114                  end); }
115 <        bool good() { return page.good(); }
115 >        bool good() const { return page.good(); }
116          void clear();
117 <        string contentType() { return type; }
118 <        unsigned contentLength() { return length; }
119 <        string redirect() { return location; }
117 >        const string& contentType() const { return type; }
118 >        unsigned contentLength() const { return length; }
119 >        const string& redirect() const { return location; }
120 > // friends:
121 >        friend istream& operator>>(istream& is, code& data) { int number; is
122 >                >> number; data = code(number); return is; }
123   };
124  
125   #endif // _HttpHandler_hpp_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines