Update include paths in miscellaneous content/ directories for base/process changes.
[chromium-blink-merge.git] / net / server / http_server_request_info.h
blob9fa7f915c7bd9860321b135e1446e75a3d8a79f9
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
3 // found in the LICENSE file.
5 #ifndef NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_
6 #define NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_
8 #include <map>
9 #include <string>
11 namespace net {
13 // Meta information about an HTTP request.
14 // 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
16 // does).
17 class HttpServerRequestInfo {
18 public:
19 HttpServerRequestInfo();
20 ~HttpServerRequestInfo();
22 // Returns header value for given header name.
23 std::string GetHeaderValue(const std::string& header_name) const;
25 // Request method.
26 std::string method;
28 // Request line.
29 std::string path;
31 // Request data.
32 std::string data;
34 // A map of the names -> values for HTTP headers.
35 typedef std::map<std::string, std::string> HeadersMap;
36 mutable HeadersMap headers;
39 } // namespace net
41 #endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_