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

Unified Diff: mojo/services/network/public/interfaces/http_message.mojom

Issue 1129143005: Introduce Http{Request,Response} mojom structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: mojo/services/network/public/interfaces/http_message.mojom
diff --git a/mojo/services/network/public/interfaces/http_message.mojom b/mojo/services/network/public/interfaces/http_message.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..0450e46896090a0d02c4e6594404e12bf54dee50
--- /dev/null
+++ b/mojo/services/network/public/interfaces/http_message.mojom
@@ -0,0 +1,23 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mojo;
+
+struct HTTPHeader {
yzshen1 2015/05/14 21:59:44 One issue that I haven't resolved is the naming in
+ string name;
+ string value;
+};
+
+struct HttpRequest {
+ string method = "GET";
+ string url;
+ array<HTTPHeader>? headers;
+ handle<data_pipe_consumer>? body;
+};
+
+struct HttpResponse {
+ uint32 status_code = 200;
+ array<HTTPHeader>? headers;
+ handle<data_pipe_consumer>? body;
+};

Powered by Google App Engine
This is Rietveld 408576698