Add AngelHttp.uri

This commit is contained in:
Tobe O 2018-11-06 14:26:45 -05:00
parent 7bdf36acd5
commit 8e08c1d857
2 changed files with 8 additions and 0 deletions

View file

@ -1,3 +1,7 @@
# 2.0.0-alpha.10
* All calls to `Service.parseId` are now affixed with the `<Id>` argument.
* Added `uri` getter to `AngelHttp`.
# 2.0.0-alpha.9
* Add `Service.map`.

View file

@ -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<HttpServer> Function(dynamic, int) get serverGenerator =>
_serverGenerator;