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

Side by Side 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: update for monet 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module mojo;
6
7 import "mojo/public/interfaces/network/http_header.mojom";
8
9 struct URLRequest {
10 // The URL to load.
11 string url;
12
13 // The HTTP method if applicable.
14 string method = "GET";
15
16 // Additional HTTP request headers.
17 array<HttpHeader>? headers;
18
19 // The payload for the request body, represented as a concatenation of data
20 // streams. For HTTP requests, the method must be set to "POST" or "PUT".
21 array<handle<data_pipe_consumer>>? body;
22
23 // The buffer size of the data pipe returned in URLResponse's |body| member.
24 // A value of 0 indicates that the default buffer size should be used. This
25 // value is just a suggestion. The URLLoader may choose to ignore this value.
26 uint32 response_body_buffer_size = 0;
27
28 // If set to true, then redirects will be automatically followed. Otherwise,
29 // when a redirect is encounterd, FollowRedirect must be called to proceed.
30 bool auto_follow_redirects = false;
31
32 // If set to true, then the HTTP request will bypass the local cache and will
33 // have a 'Cache-Control: nocache' header added in that causes any proxy
34 // servers to also not satisfy the request from their cache. This has the
35 // effect of forcing a full end-to-end fetch.
36 bool bypass_cache = false;
37 };
OLDNEW
« no previous file with comments | « mojo/public/interfaces/network/network_error.mojom ('k') | mojo/public/interfaces/network/url_response.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698