| OLD | NEW |
| (Empty) |
| 1 // Copyright 2008-2009 Google Inc. | |
| 2 // | |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | |
| 4 // you may not use this file except in compliance with the License. | |
| 5 // You may obtain a copy of the License at | |
| 6 // | |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | |
| 8 // | |
| 9 // Unless required by applicable law or agreed to in writing, software | |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | |
| 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
| 12 // See the License for the specific language governing permissions and | |
| 13 // limitations under the License. | |
| 14 // ======================================================================== | |
| 15 | |
| 16 #ifndef OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_REQUEST_H_ | |
| 17 #define OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_REQUEST_H_ | |
| 18 | |
| 19 #include <http.h> | |
| 20 #include <winhttp.h> | |
| 21 | |
| 22 namespace omaha { | |
| 23 | |
| 24 // Represents the HttpRequest received by the server. | |
| 25 class HttpRequest { | |
| 26 public: | |
| 27 HTTP_VERB http_verb() const { return verb_; } | |
| 28 void set_http_verb(HTTP_VERB verb) { verb_ = verb; } | |
| 29 | |
| 30 CString path() const { return path_; } | |
| 31 void set_path(const CString& path) { path_ = path; } | |
| 32 | |
| 33 CString content() const { return content_; } | |
| 34 void set_content(const CString& content) { content_ = content; } | |
| 35 | |
| 36 HTTP_REQUEST http_request() const { return http_request_; } | |
| 37 void set_http_request(const HTTP_REQUEST& request) { | |
| 38 http_request_ = request; | |
| 39 } | |
| 40 | |
| 41 CString query_str() const { return query_str_; } | |
| 42 void set_query_str(const CString& query_str) { | |
| 43 query_str_ = query_str; | |
| 44 } | |
| 45 | |
| 46 private: | |
| 47 HTTP_REQUEST http_request_; | |
| 48 HTTP_VERB verb_; | |
| 49 CString path_; | |
| 50 CString content_; | |
| 51 CString query_str_; | |
| 52 }; | |
| 53 | |
| 54 } // namespace omaha | |
| 55 | |
| 56 #endif // OMAHA_TOOLS_SRC_OMAHACOMPATIBILITY_HTTPSERVER_REQUEST_H_ | |
| OLD | NEW |