| Index: mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart b/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
|
| index d72979f683608945c306f8c1fb2020029033dc5f..8474df43ec129b478407faad89bcdc1eb80b0948 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/http_server/http_server.mojom.dart
|
| @@ -8,6 +8,8 @@ import 'dart:async';
|
|
|
| import 'package:mojo/bindings.dart' as bindings;
|
| import 'package:mojo/core.dart' as core;
|
| +import 'package:mojo/mojo/bindings/types/mojom_types.mojom.dart' as mojom_types;
|
| +import 'package:mojo/mojo/bindings/types/service_describer.mojom.dart' as service_describer;
|
| import 'package:mojo_services/http_server/http_request.mojom.dart' as http_request_mojom;
|
| import 'package:mojo_services/http_server/http_response.mojom.dart' as http_response_mojom;
|
|
|
| @@ -87,6 +89,8 @@ class _HttpServerSetHandlerParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class HttpServerSetHandlerResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -154,6 +158,8 @@ class HttpServerSetHandlerResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _HttpServerGetPortParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(8, 0)
|
| @@ -212,6 +218,8 @@ class _HttpServerGetPortParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class HttpServerGetPortResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -279,6 +287,8 @@ class HttpServerGetPortResponseParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class _HttpHandlerHandleRequestParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -346,6 +356,8 @@ class _HttpHandlerHandleRequestParams extends bindings.Struct {
|
| }
|
|
|
|
|
| +
|
| +
|
| class HttpHandlerHandleRequestResponseParams extends bindings.Struct {
|
| static const List<bindings.StructDataHeader> kVersions = const [
|
| const bindings.StructDataHeader(16, 0)
|
| @@ -412,9 +424,23 @@ class HttpHandlerHandleRequestResponseParams extends bindings.Struct {
|
| }
|
| }
|
|
|
| +
|
| +
|
| +
|
| const int _HttpServer_setHandlerName = 0;
|
| const int _HttpServer_getPortName = 1;
|
|
|
| +
|
| +
|
| +class _HttpServerServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class HttpServer {
|
| static const String serviceName = null;
|
| dynamic setHandler(String pattern,Object handler,[Function responseFactory = null]);
|
| @@ -437,6 +463,9 @@ class _HttpServerProxyImpl extends bindings.Proxy {
|
| return new _HttpServerProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HttpServerServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _HttpServer_setHandlerName:
|
| @@ -678,10 +707,24 @@ class HttpServerStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HttpServerServiceDescription();
|
| }
|
|
|
| const int _HttpHandler_handleRequestName = 0;
|
|
|
| +
|
| +
|
| +class _HttpHandlerServiceDescription implements service_describer.ServiceDescription {
|
| +dynamic getTopLevelInterface([Function responseFactory = null]) => null;
|
| +
|
| + dynamic getTypeDefinition(String typeKey, [Function responseFactory = null]) =>
|
| + null;
|
| +
|
| + dynamic getAllTypeDefinitions([Function responseFactory = null]) => null;
|
| +}
|
| +
|
| abstract class HttpHandler {
|
| static const String serviceName = null;
|
| dynamic handleRequest(http_request_mojom.HttpRequest request,[Function responseFactory = null]);
|
| @@ -703,6 +746,9 @@ class _HttpHandlerProxyImpl extends bindings.Proxy {
|
| return new _HttpHandlerProxyImpl.fromEndpoint(endpoint);
|
| }
|
|
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HttpHandlerServiceDescription();
|
| +
|
| void handleResponse(bindings.ServiceMessage message) {
|
| switch (message.header.type) {
|
| case _HttpHandler_handleRequestName:
|
| @@ -888,6 +934,11 @@ class HttpHandlerStub extends bindings.Stub {
|
| }
|
|
|
| int get version => 0;
|
| +
|
| + service_describer.ServiceDescription get serviceDescription =>
|
| + new _HttpHandlerServiceDescription();
|
| }
|
|
|
|
|
| +
|
| +
|
|
|