hyperium / http

Rust HTTP types
Apache License 2.0
1.12k stars 283 forks source link

Make StatusCode::as_str() return a &'static str explicitly #569

Open fasterthanlime opened 1 year ago

fasterthanlime commented 1 year ago

It's already indexing into a &'static str constant, I'd like to use it as a &'static str from my code, the only thing preventing that is the type signature :)

tot0 commented 1 year ago

YES!