| Index: mojo/dart/packages/mojo_services/lib/http_server/http_request.mojom.dart
|
| diff --git a/mojo/dart/packages/mojo_services/lib/http_server/http_request.mojom.dart b/mojo/dart/packages/mojo_services/lib/http_server/http_request.mojom.dart
|
| index e3f54b27de944da45a356437c69ca42299a6cd15..76ba4fb7c7c3317bc9e75ce7580c277b3af8be59 100644
|
| --- a/mojo/dart/packages/mojo_services/lib/http_server/http_request.mojom.dart
|
| +++ b/mojo/dart/packages/mojo_services/lib/http_server/http_request.mojom.dart
|
| @@ -5,9 +5,12 @@
|
| library http_request_mojom;
|
|
|
| import 'dart:async';
|
| +import 'dart:collection';
|
|
|
| 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;
|
| +
|
|
|
|
|
|
|
| @@ -155,5 +158,62 @@ class HttpRequest extends bindings.Struct {
|
| 'Object containing handles cannot be encoded to JSON.');
|
| }
|
| }
|
| +mojom_types.MojomStruct _http_request_HttpRequest__() {
|
| + return new mojom_types.MojomStruct()
|
| + ..declData = (new mojom_types.DeclarationData()
|
| + ..shortName = 'HttpRequest'
|
| + ..fullIdentifier = 'http_server.HttpRequest')
|
| + ..fields = <mojom_types.StructField>[
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'RelativeUrl')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Method')
|
| + ..type = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Headers')
|
| + ..type = (new mojom_types.Type()..mapType = (new mojom_types.MapType()
|
| + ..nullable = true
|
| +
|
| + ..keyType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false))
|
| + ..valueType = (new mojom_types.Type()
|
| +..stringType = (new mojom_types.StringType()..nullable = false)))),
|
| +
|
| + new mojom_types.StructField()
|
| + ..declData = (new mojom_types.DeclarationData()..shortName = 'Body')
|
| + ..type = (new mojom_types.Type()
|
| +..handleType = (new mojom_types.HandleType()
|
| +..kind = mojom_types.HandleTypeKind.dataPipeConsumer
|
| +..nullable = true)),
|
| + ];
|
| +}
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +
|
| +Map<String, mojom_types.UserDefinedType> _initDescriptions() {
|
| + var map = new HashMap<String, mojom_types.UserDefinedType>();
|
| +map["_http_request_HttpRequest__"] =
|
| + new mojom_types.UserDefinedType()
|
| + ..structType = _http_request_HttpRequest__();
|
| +
|
| + return map;
|
| +}
|
|
|
| +var _MojomDesc;
|
| +Map<String, mojom_types.UserDefinedType> getAllMojomTypeDefinitions() {
|
| + if (_MojomDesc == null) {
|
| + _MojomDesc = _initDescriptions();
|
| + }
|
| + return _MojomDesc;
|
| +}
|
|
|
|
|