Skip to content

Building an awc::uri from parts - format!() style for pathAndQuery not possible? #3318

Answered by robjtede
bburdette asked this question in Q&A
Discussion options

You must be logged in to vote

PathAndQuery implement FromStr so you can use this to create it from a non-'static str.

"/path?q=1".parse::<PathAndQuery>().unwrap()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by robjtede
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants