| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 [DartPackage="mojo_services"] | 5 [DartPackage="mojo_services"] |
| 6 module http_server; | 6 module http_server; |
| 7 | 7 |
| 8 struct HttpResponse { | 8 struct HttpResponse { |
| 9 // The HTTP status code. | 9 // The HTTP status code. |
| 10 uint32 status_code = 200; | 10 uint32 status_code = 200; |
| 11 | 11 |
| 12 // The payload for the response body. | 12 // The payload for the response body. |
| 13 handle<data_pipe_consumer>? body; | 13 handle<data_pipe_consumer>? body; |
| 14 | 14 |
| 15 // This must be the number of bytes in |body|. | 15 // This must be the number of bytes in |body|. |
| 16 int64 content_length = 0; | 16 int64 content_length = 0; |
| 17 | 17 |
| 18 // The content type. | 18 // The content type. |
| 19 string content_type = "text/html; charset=utf-8"; | 19 string content_type = "text/html; charset=utf-8"; |
| 20 | 20 |
| 21 // Additional HTTP response headers. | 21 // Additional HTTP response headers. |
| 22 map<string, string>? custom_headers; | 22 map<string, string>? custom_headers; |
| 23 }; | 23 }; |
| OLD | NEW |