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

Unified Diff: net/test/embedded_test_server/http_request.h

Issue 1376593007: SSL in EmbeddedTestServer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Typo fix. Created 5 years, 2 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
« no previous file with comments | « net/test/embedded_test_server/http_connection.cc ('k') | net/test/embedded_test_server/http_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/test/embedded_test_server/http_request.h
diff --git a/net/test/embedded_test_server/http_request.h b/net/test/embedded_test_server/http_request.h
index c29937856642206eb643ab6955132747cddf9d2b..9a142e81917184d62ebdb682e396c19425da5a13 100644
--- a/net/test/embedded_test_server/http_request.h
+++ b/net/test/embedded_test_server/http_request.h
@@ -11,6 +11,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/strings/string_piece.h"
+#include "url/gurl.h"
namespace net {
@@ -27,6 +28,7 @@ enum HttpMethod {
METHOD_PUT,
METHOD_DELETE,
METHOD_PATCH,
+ METHOD_CONNECT,
};
// Represents a HTTP request. Since it can be big, use scoped_ptr to pass it
@@ -36,6 +38,10 @@ struct HttpRequest {
HttpRequest();
~HttpRequest();
+ // Returns a GURL as a convenience to extract the path and query strings.
+ // TODO(svaldez): Use provided URL if available.
+ GURL GetURL() const;
+
std::string relative_url; // Starts with '/'. Example: "/test?query=foo"
HttpMethod method;
std::string method_string;
« no previous file with comments | « net/test/embedded_test_server/http_connection.cc ('k') | net/test/embedded_test_server/http_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698