-
-
Notifications
You must be signed in to change notification settings - Fork 373
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Make route handlers functional decorators #3436
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## v3.0 #3436 +/- ##
=======================================
Coverage 97.98% 97.99%
=======================================
Files 326 326
Lines 14566 14559 -7
Branches 2314 2306 -8
=======================================
- Hits 14273 14267 -6
Misses 154 154
+ Partials 139 138 -1 ☔ View full report in Codecov by Sentry. |
98bf1ab
to
48ab468
Compare
6847ae6
to
487447b
Compare
Quality Gate failedFailed conditions See analysis details on SonarCloud Catch issues before they fail your Quality Gate with our IDE extension SonarLint |
Documentation preview will be available shortly at https://litestar-org.github.io/litestar-docs-preview/3436 |
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
* make route handlers functional decorators
Make route handler decorators functional decorators.
This gets rids of the
__call__
method having to mutate internal state and lets us clean up things a bit.It also makes for a nicer syntax and improved type/runtime checking of the handler classes, because they can now receive a
fn
as a required keyword argument, which gets rid of theHandlerClass("/")(handler_fn)
pattern.