diff options
Diffstat (limited to 'net/server/http_server_request_info.cc')
-rw-r--r-- | net/server/http_server_request_info.cc | 9 |
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 |