fave thing so far about new Tide is the signature for each request: async fn(req: Request) -> Result<Response>;
-
-
Replying to @yoshuawuyts
Have you thought about not using Result<Response> but just Response? Errors in HTTP are also just responses
1 reply 0 retweets 0 likes -
-
Replying to @yoshuawuyts
Is the Try trait already stable? That might help :)
2 replies 0 retweets 0 likes -
Replying to @oetzn @yoshuawuyts
It would be nice if one wouldn't have to define an enum for all possible errors from a controller fn but just conversions from a particular error to a Response.
1 reply 0 retweets 0 likes
Replying to @oetzn
Yep, that's the plan.
2:20 AM - 5 Nov 2019
from Berlin, Germany
0 replies
0 retweets
1 like
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.