| 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);
|
| +};
|
|
|