hyperium / http

Rust HTTP types
Apache License 2.0
1.16k stars 291 forks source link

status: make as_str return &'static str #510

Closed jhgg closed 2 years ago

jhgg commented 2 years ago

This is technically a 'static str, however we return it as not that.

Is there a reason, can we make this a 'static str? This will help resolve some lifetime around metrics we are encountering.

CryZe commented 2 years ago

Duplicate of #452

jhgg commented 2 years ago

Aaaa, would love to see #452 merged, will close this PR!