Home | History | Annotate | Download | only in fetch
      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_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_
      6 #define NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_
      7 #pragma once
      8 
      9 #include <map>
     10 #include <string>
     11 
     12 #include "net/http/http_request_info.h"
     13 
     14 // Meta information about an HTTP request.
     15 // This is geared toward servers in that it keeps a map of the headers and
     16 // values rather than just a list of header strings (which net::HttpRequestInfo
     17 // does).
     18 class HttpServerRequestInfo : public net::HttpRequestInfo {
     19  public:
     20   HttpServerRequestInfo();
     21   virtual ~HttpServerRequestInfo();
     22 
     23   // A map of the names -> values for HTTP headers.
     24   std::map<std::string, std::string> headers;
     25 };
     26 
     27 #endif  // NET_BASE_TOOLS_HTTP_SERVER_REQUEST_INFO_H_
     28