-
Notifications
You must be signed in to change notification settings - Fork 327
What useful computed properties can we provide? #16
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
Comments
Maybe we can pre-compute the |
@pickfire Interesting thought! Feel free to play with this idea and open up a PR. |
Another one might be a passport type thing to handle different types of authentication? This may not be something worth providing out of the box from tide but certainly worth showing an example of? |
While good idea, think most frameworks leave this to middleware. Maybe a good approach would be to create a middleware piece for that. Unless we talking about common header types like basic auth? |
@chrisabruce agreed. I wonder if we can provide scaffolding for something like basic auth, oath, etc. But I think you are right, that should probably be middleware. |
We could also provide a set of tools for performing health checks? |
@aturon From what I looked at it, |
Closing as of #156, which eliminated the concept of "computed values". |
When a value can be lazily computed by request information, it's much nicer to make that value available through the
Compute
trait (andComputed
extractor) rather than e.g. using middleware or plumbing theHead
data manually in an endpoint.What are some examples of such values? One might be: a parsed version of the query segment. Let's generate a bunch of ideas and then implement them!
The text was updated successfully, but these errors were encountered: