| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ | 5 #ifndef NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
| 6 #define NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ | 6 #define NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> |
| 9 #include <string> | 10 #include <string> |
| 10 #include <map> | 11 |
| 12 namespace net { |
| 11 | 13 |
| 12 // Meta information about an HTTP request. | 14 // Meta information about an HTTP request. |
| 13 // This is geared toward servers in that it keeps a map of the headers and | 15 // This is geared toward servers in that it keeps a map of the headers and |
| 14 // values rather than just a list of header strings (which net::HttpRequestInfo | 16 // values rather than just a list of header strings (which net::HttpRequestInfo |
| 15 // does). | 17 // does). |
| 16 class HttpServerRequestInfo { | 18 class HttpServerRequestInfo { |
| 17 public: | 19 public: |
| 18 HttpServerRequestInfo(); | 20 HttpServerRequestInfo(); |
| 19 ~HttpServerRequestInfo(); | 21 ~HttpServerRequestInfo(); |
| 20 | 22 |
| 21 // Request method. | 23 // Request method. |
| 22 std::string method; | 24 std::string method; |
| 23 | 25 |
| 24 // Request line. | 26 // Request line. |
| 25 std::string path; | 27 std::string path; |
| 26 | 28 |
| 27 // Request data. | 29 // Request data. |
| 28 std::string data; | 30 std::string data; |
| 29 | 31 |
| 30 // A map of the names -> values for HTTP headers. | 32 // A map of the names -> values for HTTP headers. |
| 31 typedef std::map<std::string, std::string> HeadersMap; | 33 typedef std::map<std::string, std::string> HeadersMap; |
| 32 mutable HeadersMap headers; | 34 mutable HeadersMap headers; |
| 33 }; | 35 }; |
| 34 | 36 |
| 37 } // namespace net |
| 38 |
| 35 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ | 39 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
| OLD | NEW |