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

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..b89ba843c948a0eccfdf697dc348c3e5c5adc93f
--- /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 {
+ 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