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