Chromium Code Reviews| 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 module mojo; | |
| 6 | |
| 7 struct HTTPHeader { | |
|
yzshen1
2015/05/14 21:59:44
One issue that I haven't resolved is the naming in
| |
| 8 string name; | |
| 9 string value; | |
| 10 }; | |
| 11 | |
| 12 struct HttpRequest { | |
| 13 string method = "GET"; | |
| 14 string url; | |
| 15 array<HTTPHeader>? headers; | |
| 16 handle<data_pipe_consumer>? body; | |
| 17 }; | |
| 18 | |
| 19 struct HttpResponse { | |
| 20 uint32 status_code = 200; | |
| 21 array<HTTPHeader>? headers; | |
| 22 handle<data_pipe_consumer>? body; | |
| 23 }; | |
| OLD | NEW |