hyperium / http

Rust HTTP types
Apache License 2.0
1.15k stars 285 forks source link

Add String and &String convert for PathAndQuery #450

Closed mkindahl closed 3 years ago

mkindahl commented 3 years ago

When building a URI, it is not possible to provide neither String nor &String, which is useful when adding a path_and_query from a string built using format!.

This commit adds implementation of From and From<&String> for PathAndQuery.

mkindahl commented 3 years ago

Unsure about the procedure for contributing a patch. Please advise.