You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we're doing IntoCotResponse and IntoErrorResponse on each middleware that's being added to the project. While the overhead might not be terrible, it should be measured and if it turns out to be significant, it might be worth considering if changing the APIs is needed. One idea is to make sure that whatever gets passed into middleware() already has proper Response and Error types, and provide some conversion functionalities if not.
This discussion was converted from issue #123 on March 23, 2026 18:45.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Right now we're doing
IntoCotResponseandIntoErrorResponseon each middleware that's being added to the project. While the overhead might not be terrible, it should be measured and if it turns out to be significant, it might be worth considering if changing the APIs is needed. One idea is to make sure that whatever gets passed intomiddleware()already has properResponseandErrortypes, and provide some conversion functionalities if not.Beta Was this translation helpful? Give feedback.
All reactions