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

Side by Side Diff: mojo/services/network/public/interfaces/http_message.mojom

Issue 1129063008: Move mojom definitions of URL{Request,Response} into SDK (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: update for monet Created 5 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 module mojo; 5 module mojo;
6 6
7 struct HttpHeader { 7 import "mojo/public/interfaces/network/http_header.mojom";
8 string name;
9 string value;
10 };
11 8
12 struct HttpRequest { 9 struct HttpRequest {
13 string method = "GET"; 10 string method = "GET";
14 string url; 11 string url;
15 array<HttpHeader>? headers; 12 array<HttpHeader>? headers;
16 handle<data_pipe_consumer>? body; 13 handle<data_pipe_consumer>? body;
17 }; 14 };
18 15
19 struct HttpResponse { 16 struct HttpResponse {
20 uint32 status_code = 200; 17 uint32 status_code = 200;
21 array<HttpHeader>? headers; 18 array<HttpHeader>? headers;
22 handle<data_pipe_consumer>? body; 19 handle<data_pipe_consumer>? body;
23 }; 20 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698