summaryrefslogtreecommitdiffstats
path: root/net/server/http_server_request_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'net/server/http_server_request_info.cc')
-rw-r--r--net/server/http_server_request_info.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/net/server/http_server_request_info.cc b/net/server/http_server_request_info.cc
index e53a2e2..eda597a 100644
--- a/net/server/http_server_request_info.cc
+++ b/net/server/http_server_request_info.cc
@@ -10,4 +10,13 @@ HttpServerRequestInfo::HttpServerRequestInfo() {}
HttpServerRequestInfo::~HttpServerRequestInfo() {}
+std::string HttpServerRequestInfo::GetHeaderValue(
+ const std::string& header_name) const {
+ HttpServerRequestInfo::HeadersMap::const_iterator it =
+ headers.find(header_name);
+ if (it != headers.end())
+ return it->second;
+ return "";
+}
+
} // namespace net