From 6981312866b4b02ca0d61818f78ed65f88c9bb80 Mon Sep 17 00:00:00 2001 From: Patrick Stewart Date: Sun, 15 Dec 2024 03:56:25 -0700 Subject: [PATCH] refactor: refactoring common utilities --- common/pretty_logging/README.md | 2 +- common/range_header/example/server.dart | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/pretty_logging/README.md b/common/pretty_logging/README.md index 3e4e6ba..943cfb2 100644 --- a/common/pretty_logging/README.md +++ b/common/pretty_logging/README.md @@ -34,7 +34,7 @@ var pretty = prettyLog( printFunction: stderr.writeln, omitError: (r) { var err = r.error; - return err is AngelHttpException && err.statusCode != 500; + return err is PlatformHttpException && err.statusCode != 500; }, ); myLogger.onRecord.listen(pretty); diff --git a/common/range_header/example/server.dart b/common/range_header/example/server.dart index 076acd8..8a0f137 100644 --- a/common/range_header/example/server.dart +++ b/common/range_header/example/server.dart @@ -5,7 +5,7 @@ void main() async { /* var app = new Angel(); - var http = new AngelHttp(app); + var http = new PlatformHttp(app); var fs = const LocalFileSystem(); var vDir = new _RangingVirtualDirectory(app, fs.currentDirectory); app.logger = new Logger('range_header') @@ -22,7 +22,7 @@ void main() async { ..addExtension('yaml', 'text/plain') ..addExtension('yml', 'text/plain'); app.fallback(vDir.handleRequest); - app.fallback((req, res) => throw new AngelHttpException.notFound()); + app.fallback((req, res) => throw new PlatformHttpException.notFound()); await http.startServer('127.0.0.1', 3000); print('Listening at ${http.uri}'); */