Skip to content

Commit

Permalink
fix: remove onReq
Browse files Browse the repository at this point in the history
  • Loading branch information
iyifr committed Aug 21, 2024
1 parent 56195a8 commit 705c31b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/h4.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ typedef MiddlewareStack = Map<String, Either<Middleware?, ErrorHandler?>?>?;
class H4 {
HttpServer? server;
H4Router? router;
Middleware _onReq;
late MiddlewareStack middlewares;

// ignore: prefer_function_declarations_over_variables
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 705c31b

Please sign in to comment.