Add AngelHttp.uri
This commit is contained in:
parent
7bdf36acd5
commit
8e08c1d857
2 changed files with 8 additions and 0 deletions
|
@ -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
|
# 2.0.0-alpha.9
|
||||||
* Add `Service.map`.
|
* Add `Service.map`.
|
||||||
|
|
||||||
|
|
|
@ -32,6 +32,10 @@ class AngelHttp {
|
||||||
|
|
||||||
AngelHttp(this.app, {this.useZone: false});
|
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.
|
/// The function used to bind this instance to an HTTP server.
|
||||||
Future<HttpServer> Function(dynamic, int) get serverGenerator =>
|
Future<HttpServer> Function(dynamic, int) get serverGenerator =>
|
||||||
_serverGenerator;
|
_serverGenerator;
|
||||||
|
|
Loading…
Reference in a new issue