blob: 67965f29aa34302e03161e86e5ed5680db260ded [file] [log] [blame]
[email protected]b6dbb0a2011-04-18 00:17:411// Copyright (c) 2011 The Chromium Authors. All rights reserved.
[email protected]1889dc1b2010-10-14 22:03:132// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/server/http_server_request_info.h"
6
[email protected]7ab0ffdf2013-07-31 22:27:597#include "base/strings/string_util.h"
8
[email protected]b6dbb0a2011-04-18 00:17:419namespace net {
10
[email protected]1889dc1b2010-10-14 22:03:1311HttpServerRequestInfo::HttpServerRequestInfo() {}
12
13HttpServerRequestInfo::~HttpServerRequestInfo() {}
[email protected]b6dbb0a2011-04-18 00:17:4114
[email protected]86c6a0b52011-08-02 19:49:2515std::string HttpServerRequestInfo::GetHeaderValue(
16 const std::string& header_name) const {
[email protected]7ab0ffdf2013-07-31 22:27:5917 DCHECK_EQ(StringToLowerASCII(header_name), header_name);
[email protected]86c6a0b52011-08-02 19:49:2518 HttpServerRequestInfo::HeadersMap::const_iterator it =
19 headers.find(header_name);
20 if (it != headers.end())
21 return it->second;
[email protected]007b3f82013-04-09 08:46:4522 return std::string();
[email protected]86c6a0b52011-08-02 19:49:2523}
24
[email protected]b6dbb0a2011-04-18 00:17:4125} // namespace net