| // Copyright 2015 The Chromium Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| module mojo; | |
| import "mojo/public/interfaces/network/http_header.mojom"; | |
| struct HttpRequest { | |
| string method = "GET"; | |
| string url; | |
| array<HttpHeader>? headers; | |
| handle<data_pipe_consumer>? body; | |
| }; | |
| struct HttpResponse { | |
| uint32 status_code = 200; | |
| array<HttpHeader>? headers; | |
| handle<data_pipe_consumer>? body; | |
| }; |