| Index: mojo/services/public/interfaces/network/url_loader.mojom
|
| diff --git a/mojo/services/public/interfaces/network/url_loader.mojom b/mojo/services/public/interfaces/network/url_loader.mojom
|
| index c1d2bd3b1249b55cf79d1aa26bc04548426c386e..b258fc4c4cba71757126dbceb78894f9638cdab0 100644
|
| --- a/mojo/services/public/interfaces/network/url_loader.mojom
|
| +++ b/mojo/services/public/interfaces/network/url_loader.mojom
|
| @@ -8,17 +8,17 @@
|
|
|
| struct URLRequest {
|
| // The URL to load.
|
| - string url;
|
| + string? url;
|
|
|
| // The HTTP method if applicable.
|
| - string method = "GET";
|
| + string? method = "GET";
|
|
|
| // Additional HTTP request headers.
|
| - array<string>? 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;
|
| + array<handle<data_pipe_consumer>?>? body;
|
|
|
| // The number of bytes to be read from |body|. A Content-Length header of
|
| // this value will be sent. Set to -1 if length is unknown, which will cause
|
| @@ -59,7 +59,7 @@
|
| string? status_line;
|
|
|
| // The HTTP response headers.
|
| - array<string>? headers;
|
| + array<string?>? headers;
|
|
|
| // The MIME type of the response body.
|
| string? mime_type;
|
| @@ -92,13 +92,13 @@
|
| // Loads the given |request|, asynchronously producing |response|. Consult
|
| // |response| to determine if the request resulted in an error, was
|
| // redirected, or has a response body to be consumed.
|
| - Start(URLRequest request) => (URLResponse response);
|
| + Start(URLRequest? request) => (URLResponse? response);
|
|
|
| // If the request passed to |Start| had |auto_follow_redirects| set to false,
|
| // then upon receiving an URLResponse with a non-NULL |redirect_url| field,
|
| // |FollowRedirect| may be called to load the URL indicated by the redirect.
|
| - FollowRedirect() => (URLResponse response);
|
| + FollowRedirect() => (URLResponse? response);
|
|
|
| // Query status about the URLLoader.
|
| - QueryStatus() => (URLLoaderStatus status);
|
| + QueryStatus() => (URLLoaderStatus? status);
|
| };
|
|
|