diff --git a/packages/container/container/lib/platform_container.dart b/packages/container/container/lib/platform_container.dart index e50508e..f2f6a52 100644 --- a/packages/container/container/lib/platform_container.dart +++ b/packages/container/container/lib/platform_container.dart @@ -1,4 +1,4 @@ -library angel3_container; +library platform_container; export 'src/container.dart'; export 'src/empty/empty.dart'; diff --git a/packages/container/container/lib/src/static/static.dart b/packages/container/container/lib/src/static/static.dart index 0a91526..250c0f3 100644 --- a/packages/container/container/lib/src/static/static.dart +++ b/packages/container/container/lib/src/static/static.dart @@ -2,7 +2,7 @@ import '../reflector.dart'; /// A [Reflector] implementation that performs simple [Map] lookups. /// -/// `package:angel_container_generator` uses this to create reflectors from analysis metadata. +/// `package:platform_container_generator` uses this to create reflectors from analysis metadata. class StaticReflector extends Reflector { final Map names; final Map types; diff --git a/packages/framework/example/controller.dart b/packages/framework/example/controller.dart index ebf8bd0..40b6d92 100644 --- a/packages/framework/example/controller.dart +++ b/packages/framework/example/controller.dart @@ -8,8 +8,8 @@ void main() async { Logger.root.onRecord.listen(print); // Create our server. - var app = Angel(logger: Logger('angel'), reflector: MirrorsReflector()); - var http = AngelHttp(app); + var app = Protevus(logger: Logger('angel'), reflector: MirrorsReflector()); + var http = ProtevusHttp(app); await app.mountController(); diff --git a/packages/framework/example/handle_error.dart b/packages/framework/example/handle_error.dart index 90260ec..d2c702a 100644 --- a/packages/framework/example/handle_error.dart +++ b/packages/framework/example/handle_error.dart @@ -6,7 +6,7 @@ import 'package:platform_framework/http.dart'; import 'package:logging/logging.dart'; void main() async { - var app = Angel(reflector: MirrorsReflector()) + var app = Protevus(reflector: MirrorsReflector()) ..logger = (Logger('angel') ..onRecord.listen((rec) { print(rec); @@ -18,7 +18,7 @@ void main() async { app.fallback( (req, res) => Future.error('Throwing just because I feel like!')); - var http = AngelHttp(app); + var http = ProtevusHttp(app); HttpServer? server = await http.startServer('127.0.0.1', 3000); var url = 'http://${server.address.address}:${server.port}'; print('Listening at $url'); diff --git a/packages/framework/example/hostname.dart b/packages/framework/example/hostname.dart index 19a3fa7..2b5e8bf 100644 --- a/packages/framework/example/hostname.dart +++ b/packages/framework/example/hostname.dart @@ -3,14 +3,14 @@ import 'package:platform_framework/platform_framework.dart'; import 'package:platform_framework/http.dart'; import 'package:logging/logging.dart'; -Future apiConfigurer(Angel app) async { +Future apiConfigurer(Protevus app) async { app.get('/', (req, res) => 'Hello, API!'); app.fallback((req, res) { return 'fallback on ${req.uri} (within the API)'; }); } -Future frontendConfigurer(Angel app) async { +Future frontendConfigurer(Protevus app) async { app.fallback((req, res) => '(usually an index page would be shown here.)'); } @@ -19,8 +19,8 @@ void main() async { hierarchicalLoggingEnabled = true; //Logger.root.onRecord.listen(prettyLog); - var app = Angel(logger: Logger('angel')); - var http = AngelHttp(app); + var app = Protevus(logger: Logger('angel')); + var http = ProtevusHttp(app); var multiHost = HostnameRouter.configure({ 'api.localhost:3000': apiConfigurer, 'localhost:3000': frontendConfigurer, diff --git a/packages/framework/example/http2/body_parsing.dart b/packages/framework/example/http2/body_parsing.dart index 0ccb157..dfb1c46 100644 --- a/packages/framework/example/http2/body_parsing.dart +++ b/packages/framework/example/http2/body_parsing.dart @@ -6,7 +6,7 @@ import 'package:file/local.dart'; import 'package:logging/logging.dart'; void main() async { - var app = Angel(); + var app = Protevus(); app.logger = Logger('angel') ..onRecord.listen((rec) { print(rec); @@ -35,10 +35,10 @@ void main() async { st); } - var http1 = AngelHttp(app); - var http2 = AngelHttp2(app, ctx); + var http1 = ProtevusHttp(app); + var http2 = ProtevusHttp2(app, ctx); - // HTTP/1.x requests will fallback to `AngelHttp` + // HTTP/1.x requests will fallback to `ProtevusHttp` http2.onHttp1.listen(http1.handleRequest); var server = await http2.startServer('127.0.0.1', 3000); diff --git a/packages/framework/example/http2/main.dart b/packages/framework/example/http2/main.dart index 18894a8..b18d32a 100644 --- a/packages/framework/example/http2/main.dart +++ b/packages/framework/example/http2/main.dart @@ -6,7 +6,7 @@ import 'package:logging/logging.dart'; import 'common.dart'; void main() async { - var app = Angel() + var app = Protevus() ..encoders.addAll({ 'gzip': gzip.encoder, 'deflate': zlib.encoder, @@ -32,10 +32,10 @@ void main() async { ); } - var http1 = AngelHttp(app); - var http2 = AngelHttp2(app, ctx); + var http1 = ProtevusHttp(app); + var http2 = ProtevusHttp2(app, ctx); - // HTTP/1.x requests will fallback to `AngelHttp` + // HTTP/1.x requests will fallback to `ProtevusHttp` http2.onHttp1.listen(http1.handleRequest); await http2.startServer('127.0.0.1', 3000); diff --git a/packages/framework/example/http2/public/app.js b/packages/framework/example/http2/public/app.js index 036c6dc..5b08ee9 100644 --- a/packages/framework/example/http2/public/app.js +++ b/packages/framework/example/http2/public/app.js @@ -7,7 +7,7 @@ window.onload = function() { $app.appendChild($h1); $app.appendChild($button); - $h1.textContent = '~Angel HTTP/2 server push~'; + $h1.textContent = '~Protevus HTTP/2 server push~'; $button.textContent = 'Change color'; $button.onclick = function() { diff --git a/packages/framework/example/http2/public/body_parsing.html b/packages/framework/example/http2/public/body_parsing.html index 941d21c..8ad8a1a 100644 --- a/packages/framework/example/http2/public/body_parsing.html +++ b/packages/framework/example/http2/public/body_parsing.html @@ -2,7 +2,7 @@ - Angel HTTP/2 + Protevus HTTP/2