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

Unified Diff: services/http_server/public/http_server.mojom

Issue 715153004: Add support for HTTP handlers that are in self-contained apps. Also add an example app. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/http_server/public/BUILD.gn ('k') | services/http_server/public/http_server_util.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/http_server/public/http_server.mojom
diff --git a/services/http_server/public/http_server.mojom b/services/http_server/public/http_server.mojom
index d5e982b89d90394be5cc79b69a0b07a3693d3c75..974bfb40ab135516fe0a43b2c10f425ec5f62842 100644
--- a/services/http_server/public/http_server.mojom
+++ b/services/http_server/public/http_server.mojom
@@ -4,4 +4,18 @@
module mojo;
-// TODO(jam): interface for http_server
+import "services/http_server/public/http_request.mojom";
+import "services/http_server/public/http_response.mojom";
+
+[Client=HttpServerClient]
+interface HttpServerService {
+ // Add a handler for the given regex path.
+ AddHandler(string path) => (bool success);
+
+ // Remove a previously registered handler.
+ RemoveHandler(string path) => (bool success);
+};
+
+interface HttpServerClient {
+ OnHandleRequest(HttpRequest request) => (HttpResponse response);
+};
« no previous file with comments | « services/http_server/public/BUILD.gn ('k') | services/http_server/public/http_server_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698