From 705c31b3d7b25c3b26d5de011fc15b7badb9336e Mon Sep 17 00:00:00 2001 From: iyifr Date: Wed, 21 Aug 2024 15:05:08 +0100 Subject: [PATCH] fix: remove onReq --- lib/src/h4.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/h4.dart b/lib/src/h4.dart index 765a67d..2b0e8c9 100644 --- a/lib/src/h4.dart +++ b/lib/src/h4.dart @@ -38,7 +38,6 @@ typedef MiddlewareStack = Map?>?; class H4 { HttpServer? server; H4Router? router; - Middleware _onReq; late MiddlewareStack middlewares; // ignore: prefer_function_declarations_over_variables @@ -143,7 +142,7 @@ class H4 { /// ``` @Deprecated('Set the middlewares in the create app constructor instead') void onRequest(Middleware func) { - _onReq = func; + return; } /// Registers an error handling function to be executed when an error occurs.