Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(134)

Side by Side Diff: mojo/services/network/public/interfaces/http_request.mojom

Issue 1136773002: Add HTTP server mojo interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 HttpRequest {
jam 2015/05/11 20:54:46 I'm curious is there a reason why we can't reuse U
yzshen1 2015/05/11 22:45:26 Good point. Thanks!
8 string relative_url; // Starts with '/'. Example: "/test?query=foo"
9
10 // The HTTP method if applicable.
11 string method = "GET";
12
13 // Additional HTTP request headers.
14 map<string, string>? headers;
15
16 // The payload for the request body. Only set for "POST" or "PUT".
17 handle<data_pipe_consumer>? body;
18 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698