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
documentationImprovements or additions to documentation
1 participant
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
-
In some frameworks like Flask, you can white-list request methods with the
methods
parameter in theroute
decorator:Tremolo doesn't support that but it allows us to do something similar.
Since tremolo supports arbritrary parameters in handlers, you can just put
methods
in handlers as follows:Then the
methods
parameter will be available inrequest.context.options
so that we can process it in the response middleware:Beta Was this translation helpful? Give feedback.
All reactions