OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ | 5 #ifndef NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ |
6 #define NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ | 6 #define NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ |
7 | 7 |
| 8 #include <map> |
8 #include <string> | 9 #include <string> |
9 | 10 |
10 #include "net/http/http_request_info.h" | 11 #include "net/http/http_request_info.h" |
11 | 12 |
12 // Meta information about an HTTP request. | 13 // Meta information about an HTTP request. |
13 // This is geared toward servers in that it keeps a map of the headers and | 14 // 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 | 15 // values rather than just a list of header strings (which net::HttpRequestInfo |
15 // does). | 16 // does). |
16 class HttpServerRequestInfo : public net::HttpRequestInfo { | 17 class HttpServerRequestInfo : public net::HttpRequestInfo { |
17 public: | 18 public: |
18 HttpServerRequestInfo() : net::HttpRequestInfo() {} | 19 HttpServerRequestInfo() : net::HttpRequestInfo() {} |
19 | 20 |
20 // A map of the names -> values for HTTP headers. | 21 // A map of the names -> values for HTTP headers. |
21 std::map<std::string, std::string> headers; | 22 std::map<std::string, std::string> headers; |
22 }; | 23 }; |
23 | 24 |
24 #endif // NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ | 25 #endif // NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_ |
OLD | NEW |