hyperium / http

Rust HTTP types
Apache License 2.0
1.14k stars 284 forks source link

Would you consider implementing as_str for http::Version? #558

Closed ho-229 closed 2 years ago

seanmonstar commented 2 years ago

What would the as_str return? There's an official string representation for HTTP/1.0 and 1.1, but the others are not printed as strings in their protocols.

ho-229 commented 2 years ago

You are right, but it's not convenient when I want to export the Version string form to some places. I think the output format is like HTTP/x.x. (Perhaps this is my personal needs😂)