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

Unified Diff: mojo/services/network/public/interfaces/url_loader.mojom

Issue 1129143005: Introduce Http{Request,Response} mojom structs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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;
« no previous file with comments | « mojo/services/network/public/interfaces/http_message.mojom ('k') | mojo/services/network/url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698