OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
| 6 #define NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "net/http/http_request_info.h" |
| 11 |
| 12 // Meta information about an HTTP request. |
| 13 // 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 // does). |
| 16 class HttpServerRequestInfo { |
| 17 public: |
| 18 HttpServerRequestInfo() {} |
| 19 |
| 20 // Request method. |
| 21 std::string method; |
| 22 |
| 23 // Request line. |
| 24 std::string path; |
| 25 |
| 26 // Request data. |
| 27 std::string data; |
| 28 |
| 29 // A map of the names -> values for HTTP headers. |
| 30 typedef std::map<std::string, std::string> HeadersMap; |
| 31 HeadersMap headers; |
| 32 }; |
| 33 |
| 34 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |
OLD | NEW |