| OLD | NEW |
| 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 import "third_party/mojo/src/mojo/public/interfaces/network/http_header.mojom"; | 7 import "third_party/mojo/src/mojo/public/interfaces/network/http_header.mojom"; |
| 8 | 8 |
| 9 struct HttpRequest { | 9 struct HttpRequest { |
| 10 string method = "GET"; | 10 string method = "GET"; |
| 11 string url; | 11 string url; |
| 12 array<HttpHeader>? headers; | 12 array<HttpHeader>? headers; |
| 13 handle<data_pipe_consumer>? body; | 13 handle<data_pipe_consumer>? body; |
| 14 }; | 14 }; |
| 15 | 15 |
| 16 struct HttpResponse { | 16 struct HttpResponse { |
| 17 uint32 status_code = 200; | 17 uint32 status_code = 200; |
| 18 array<HttpHeader>? headers; | 18 array<HttpHeader>? headers; |
| 19 handle<data_pipe_consumer>? body; | 19 handle<data_pipe_consumer>? body; |
| 20 }; | 20 }; |
| OLD | NEW |