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 18 by douglas, 2002-12-09T21:40:12-08:00 vs.
Revision 37 by douglas, 2003-01-16T22:24:01-08:00

# Line 1 | Line 1
1   /* ============================================================================
2   * Douglas Thrift's Search Engine License
3   *
4 < * Copyright (C) 2002, Douglas Thrift. All Rights Reserved.
4 > * Copyright (C) 2002-2003, Douglas Thrift. All Rights Reserved.
5   * Redistribution and use in source and binary forms, with or without
6   * modification, are permitted provided that the following conditions are met:
7   *
# Line 89 | Line 89 | private:
89   #endif // _WIN32
90          SOCKET http;
91          char* buffer;
92        unsigned begin;
92          string page;
93          string type;
94          unsigned length;
95          string location;
96          bool chunked;
97 +        string email;
98 +        void populate();
99          void putline(const string line = "");
100          string getline();
101          void error(const string& prefix, bool host = false);
102   public:
103          HttpHandler();
104          ~HttpHandler();
105 <        bool handle(URL& url, bool head = false);
105 >        bool handle(URL& url, const string referer = "", bool head = false);
106          HttpHandler& getline(string& line, char endline = '\n');
107 <        bool good();
107 >        bool good() { return (page.length() > 0); }
108          void clear();
109          string contentType() { return type; }
110          unsigned contentLength() { return length; }

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines