Index: mojo/services/network/public/interfaces/url_loader.mojom |
diff --git a/mojo/services/network/public/interfaces/url_loader.mojom b/mojo/services/network/public/interfaces/url_loader.mojom |
index 4ca3f8dde9c65d9fe85e2aaaa8c8cca2a2964298..d0a7164246c086b08007dccbb31a5eb17c4e8333 100644 |
--- a/mojo/services/network/public/interfaces/url_loader.mojom |
+++ b/mojo/services/network/public/interfaces/url_loader.mojom |
@@ -4,13 +4,9 @@ |
module mojo; |
+import "network/public/interfaces/http_message.mojom"; |
import "network/public/interfaces/network_error.mojom"; |
-struct HTTPHeader { |
- string name; |
- string value; |
-}; |
- |
struct URLRequest { |
// The URL to load. |
string url; |
@@ -19,7 +15,7 @@ struct URLRequest { |
string method = "GET"; |
// Additional HTTP request headers. |
- array<HTTPHeader>? headers; |
+ array<HttpHeader>? 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". |
@@ -59,7 +55,7 @@ struct URLResponse { |
string? status_line; |
// The HTTP response headers. |
- array<HTTPHeader>? headers; |
+ array<HttpHeader>? headers; |
// The MIME type of the response body. |
string? mime_type; |