| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 [DartPackage="mojo_services"] | |
| 6 module mojo; | |
| 7 | |
| 8 import "mojo/public/interfaces/network/http_header.mojom"; | |
| 9 | |
| 10 struct HttpRequest { | |
| 11 string method = "GET"; | |
| 12 string url; | |
| 13 array<HttpHeader>? headers; | |
| 14 handle<data_pipe_consumer>? body; | |
| 15 }; | |
| 16 | |
| 17 struct HttpResponse { | |
| 18 uint32 status_code = 200; | |
| 19 array<HttpHeader>? headers; | |
| 20 handle<data_pipe_consumer>? body; | |
| 21 }; | |
| OLD | NEW |