Chromium Code Reviews| 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..0450e46896090a0d02c4e6594404e12bf54dee50 |
| --- /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 { |
|
yzshen1
2015/05/14 21:59:44
One issue that I haven't resolved is the naming in
|
| + 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; |
| +}; |