- add sources.
[platform/framework/web/crosswalk.git] / src / net / tools / fetch / http_server_response_info.h
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.
4
5 #ifndef NET_HTTP_HTTP_RESPONSE_INFO_H_
6 #define NET_HTTP_HTTP_RESPONSE_INFO_H_
7
8 #include <map>
9 #include <string>
10
11 // Meta information about a server response.
12 class HttpServerResponseInfo {
13  public:
14   HttpServerResponseInfo();
15   ~HttpServerResponseInfo();
16
17   // The response protocol.
18   std::string protocol;
19
20   // The status code.
21   int status;
22
23   // The server identifier.
24   std::string server_name;
25
26   // The content type.
27   std::string content_type;
28
29   // The content length.
30   int content_length;
31
32   // Should we close the connection.
33   bool connection_close;
34
35   // Additional response headers.
36   std::map<std::string, std::string> headers;
37 };
38
39 #endif  // NET_HTTP_HTTP_RESPONSE_INFO_H_