Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(315)

Side by Side Diff: net/server/http_server_request_info.h

Issue 2969006: Revert 52336 - More header cleanup:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/server/http_listen_socket.cc ('k') | net/tools/fetch/http_listen_socket.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 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 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 7
8 #include <string> 8 #include <string>
9 #include <map>
10 9
11 #include "net/http/http_request_info.h" 10 #include "net/http/http_request_info.h"
12 11
13 // Meta information about an HTTP request. 12 // Meta information about an HTTP request.
14 // This is geared toward servers in that it keeps a map of the headers and 13 // This is geared toward servers in that it keeps a map of the headers and
15 // values rather than just a list of header strings (which net::HttpRequestInfo 14 // values rather than just a list of header strings (which net::HttpRequestInfo
16 // does). 15 // does).
17 class HttpServerRequestInfo { 16 class HttpServerRequestInfo {
18 public: 17 public:
19 HttpServerRequestInfo() {} 18 HttpServerRequestInfo() {}
20 19
21 // Request method. 20 // Request method.
22 std::string method; 21 std::string method;
23 22
24 // Request line. 23 // Request line.
25 std::string path; 24 std::string path;
26 25
27 // Request data. 26 // Request data.
28 std::string data; 27 std::string data;
29 28
30 // A map of the names -> values for HTTP headers. 29 // A map of the names -> values for HTTP headers.
31 typedef std::map<std::string, std::string> HeadersMap; 30 typedef std::map<std::string, std::string> HeadersMap;
32 HeadersMap headers; 31 HeadersMap headers;
33 }; 32 };
34 33
35 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ 34 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_
OLDNEW
« no previous file with comments | « net/server/http_listen_socket.cc ('k') | net/tools/fetch/http_listen_socket.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698