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

Unified Diff: mojo/public/interfaces/network/url_request.mojom

Issue 1129063008: Move mojom definitions of URL{Request,Response} into SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Fix up deps from other mojoms 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/public/interfaces/network/url_request.mojom
diff --git a/mojo/public/interfaces/network/url_request.mojom b/mojo/public/interfaces/network/url_request.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..9632c9bc028661f35a1a0cbb835f0f237cf4f1e2
--- /dev/null
+++ b/mojo/public/interfaces/network/url_request.mojom
@@ -0,0 +1,38 @@
+// 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 URLRequest {
+ // The URL to load.
+ string url;
+
+ // The HTTP method if applicable.
+ string method = "GET";
+
+ // Additional HTTP request headers.
+ array<string>? headers;
+
+ // The payload for the request body, represented as a concatenation of data
+ // streams. For HTTP requests, the method must be set to "POST" or "PUT".
+ array<handle<data_pipe_consumer>>? body;
+
+ // The buffer size of the data pipe returned in URLResponse's |body| member.
+ // A value of 0 indicates that the default buffer size should be used. This
+ // value is just a suggestion. The URLLoader may choose to ignore this value.
+ uint32 response_body_buffer_size = 0;
+
+ // If set to true, then redirects will be automatically followed. Otherwise,
+ // when a redirect is encounterd, FollowRedirect must be called to proceed.
+ bool auto_follow_redirects = false;
+
+ // If set to true, then the HTTP request will bypass the local cache and will
+ // have a 'Cache-Control: nocache' header added in that causes any proxy
+ // servers to also not satisfy the request from their cache. This has the
+ // effect of forcing a full end-to-end fetch.
+ bool bypass_cache = false;
+
+ // The referrer request header.
+ string? referrer;
+};

Powered by Google App Engine
This is Rietveld 408576698