Anyway, entering the debugging stage of "why isn't tide working". Reminds me of a bug I had in Surf for a while — data gets lost somewhere when converting from AsyncRead -> Bytes
-
Show this thread
-
Juuuuust need a bit more time. Hopefully tomorrow!
1 reply 0 retweets 1 likeShow this thread -
Anyway, the cool thing I got working today: Response::new(200) .body_json(/* struct */) Is how to create a 200 Ok with a json body.
1 reply 0 retweets 3 likesShow this thread
Wondering if we could add the following bound: impl<T: Serialize> IntoResponse for T; Which would allow returning structs as-is from APIs. Though I believe Serialize is already implemented for String, so it wouldn't work. Perhaps tho!
8:29 PM - 6 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.