refactor middleware pipeline and improve ci checks #4
Reference in New Issue
Block a user
Delete Branch "refactor/pipeline-execution-to-satic"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
runRoutetoIInternalRoutefor compiled middleware chainsRouteBuilderTypeErrorfor invalid middleware or handler signaturesHttpKernelto userunRouteand simplify error handlingHttpKernelcitask todeno.jsoncfor local checksThis update introduces a statically compiled middleware and handler execution pipeline via a new
runRoutemethod on internal routes. Middleware and handler signatures are validated at route registration, with invalid signatures causing immediateTypeErrorexceptions. TheHttpKernelnow delegates execution to the route's compiled chain and handles errors with a streamlined internal handler. Parallel benchmarks are added for performance assessment. Tests are updated to expect compile-time exceptions for invalid signatures. The CI workflow is improved with separate steps for formatting, linting, testing, and benchmarking, including explicit failure detection. A localcitask is added to the configuration for convenience.e763351087to8656682b28