| Index: mojo/services/network/public/interfaces/http_message.mojom
|
| diff --git a/mojo/services/network/public/interfaces/http_message.mojom b/mojo/services/network/public/interfaces/http_message.mojom
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..b89ba843c948a0eccfdf697dc348c3e5c5adc93f
|
| --- /dev/null
|
| +++ b/mojo/services/network/public/interfaces/http_message.mojom
|
| @@ -0,0 +1,23 @@
|
| +// 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;
|
| +
|
| +struct HttpHeader {
|
| + string name;
|
| + string value;
|
| +};
|
| +
|
| +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;
|
| +};
|
|
|