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

Side by Side Diff: mojo/public/interfaces/network/url_response.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 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/network_error.mojom";
8
9 struct URLResponse {
10 // If the response resulted in a network level error, this field will be set.
11 NetworkError? error;
12
13 // The response body stream. Read from this data pipe to receive the bytes of
14 // response body.
15 handle<data_pipe_consumer>? body;
16
17 // The final URL of the response, after redirects have been followed.
18 string? url;
19
20 // The HTTP status code. 0 if not applicable.
21 uint32 status_code;
22
23 // The HTTP status line.
24 string? status_line;
25
26 // The HTTP response headers.
27 array<string>? headers;
28
29 // The MIME type of the response body.
30 string? mime_type;
31
32 // The character set of the response body.
33 string? charset;
34
35 // These fields are set to non-NULL if this response corresponds to a
36 // redirect. Call the |FollowRedirect| method on the URLLoader instance to
37 // follow this redirect.
38 string? redirect_method;
39 string? redirect_url;
40 string? redirect_referrer;
41 };
42
viettrungluu 2015/05/09 00:13:08 My eyes!
43
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698