OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 [DartPackage="mojo_services"] | |
6 module http_server; | |
7 | |
8 struct HttpRequest { | |
9 string relative_url; // Starts with '/'. Example: "/test?query=foo" | |
10 | |
11 // The HTTP method if applicable. | |
12 string method = "GET"; | |
13 | |
14 // Additional HTTP request headers. | |
15 map<string, string>? headers; | |
16 | |
17 // The payload for the request body. Only set for "POST" or "PUT". | |
18 handle<data_pipe_consumer>? body; | |
19 }; | |
OLD | NEW |