Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(356)

Unified Diff: net/server/http_server_request_info.h

Issue 181063006: Gets the peer address (if available) in server requests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed proto, other review fixes Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/server/http_server_request_info.h
diff --git a/net/server/http_server_request_info.h b/net/server/http_server_request_info.h
index 6282418790148c017312459c520a278eb44baa3f..467dddda9cbab28444355d5dff346e7fb330b5d7 100644
--- a/net/server/http_server_request_info.h
+++ b/net/server/http_server_request_info.h
@@ -8,6 +8,8 @@
#include <map>
#include <string>
+#include "net/base/ip_endpoint.h"
+
namespace net {
// Meta information about an HTTP request.
@@ -23,6 +25,12 @@ class HttpServerRequestInfo {
// lower case.
std::string GetHeaderValue(const std::string& header_name) const;
+ // Request protocol.
+ std::string proto;
Ryan Sleevi 2014/03/17 19:46:04 Did you mean to remove this?
gunsch 2014/03/17 20:26:29 Yep, thanks for catching. Done.
+
+ // Request peer address.
+ IPEndPoint peer;
+
// Request method.
std::string method;

Powered by Google App Engine
This is Rietveld 408576698