diff --git a/CHANGELOG.md b/CHANGELOG.md index 3bbbac2f..3472afdd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +# 2.0.0-alpha.10 +* All calls to `Service.parseId` are now affixed with the `` argument. +* Added `uri` getter to `AngelHttp`. + # 2.0.0-alpha.9 * Add `Service.map`. diff --git a/lib/src/http/angel_http.dart b/lib/src/http/angel_http.dart index 5623d6fe..e645d4c6 100644 --- a/lib/src/http/angel_http.dart +++ b/lib/src/http/angel_http.dart @@ -32,6 +32,10 @@ class AngelHttp { AngelHttp(this.app, {this.useZone: false}); + /// The path at which this server is listening for requests. + Uri get uri => new Uri( + scheme: 'http', host: _server.address.address, port: _server.port); + /// The function used to bind this instance to an HTTP server. Future Function(dynamic, int) get serverGenerator => _serverGenerator;