Join Nostr
2026-02-08 21:10:09 UTC

mcc on Nostr: *rubbing eyes* Anyone use "Rocket"? The worst/most Ruby-like thing about Rocket is ...

*rubbing eyes* Anyone use "Rocket"?

The worst/most Ruby-like thing about Rocket is when you return a value from a Route function, you just kinda return… whatever datatype you want, and Rocket figures it out.

Unless it doesn't, and you have *no* idea what to return.

For a string, you return a String.

What do I return for bytes? It's not a string, it's a &[u8; 1335895] and it's not valid UTF-8. Do I return a rocket::response::ByteStream? That seems to be the correct answer but doesn't work