emmett-framework / emmett

The web framework for inventors
Other
1.04k stars 70 forks source link

output parameter in route #271

Closed josejachuf closed 4 years ago

josejachuf commented 4 years ago

At the end of upgrading it mentions the output parameter in route but it is not documented. In which case would it be used and for what?

New features

Emmett 2.0 also introduces some new features:

Websockets support
An optional output parameter to route decorator
An after_loop signal
josejachuf commented 4 years ago

Very good feature. A few days ago, I just had a situation like this, which returned byte string and I needed string.