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

Comparing trunk/Search/HttpHandler.h (file contents):
Revision 16 by douglas, 2002-12-07T00:19:03-08:00 vs.
Revision 17 by douglas, 2002-12-09T18:31:11-08:00

# Line 82 | Line 82 | inline int closesocket(SOCKET s) { retur
82   class HttpHandler
83   {
84   private:
85 +        enum code {ok = 200, choices = 300, moved = 301, found = 302, notfound =
86 +                404, internal = 500};
87   #ifdef _WIN32
88          WSADATA data;
89   #endif // _WIN32
# Line 91 | Line 93 | private:
93          string page;
94          string type;
95          unsigned length;
96 +        string location;
97          void putline(const string line = "");
98 +        string getline();
99          void error(const string prefix, bool host = false);
100   public:
101          HttpHandler();
# Line 102 | Line 106 | public:
106          void clear();
107          string contentType() { return type; }
108          unsigned contentLength() { return length; }
109 +        string redirect() { return location; }
110   };
111  
112   #endif // _HttpHandler_h_

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines