From 8e08c1d85768b27e10b569e0a9a95418ccfa5529 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Tue, 6 Nov 2018 14:26:45 -0500 Subject: [PATCH] Add AngelHttp.uri --- CHANGELOG.md | 4 ++++ lib/src/http/angel_http.dart | 4 ++++ 2 files changed, 8 insertions(+) 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;