OLD | NEW |
---|---|
(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 | |
OLD | NEW |