This source file includes following definitions.
- GetHeaderValue
#include "net/server/http_server_request_info.h"
#include "base/strings/string_util.h"
namespace net {
HttpServerRequestInfo::HttpServerRequestInfo() {}
HttpServerRequestInfo::~HttpServerRequestInfo() {}
std::string HttpServerRequestInfo::GetHeaderValue(
const std::string& header_name) const {
DCHECK_EQ(StringToLowerASCII(header_name), header_name);
HttpServerRequestInfo::HeadersMap::const_iterator it =
headers.find(header_name);
if (it != headers.end())
return it->second;
return std::string();
}
}