Skip to content

Pattern for custom get_param_as_... #2334

Answered by vytas7
davetapley asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @davetapley!
There are many ways to achieve this depending on your usage patterns. If you do like the default get_param_as_*(), you could maybe simply subclass Request, and pass the new class to your App's initializer?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@davetapley
Comment options

Answer selected by davetapley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants