We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect
It would be ideal if Poem did not use its own Uri and insead used the url crate for type-interoperability with other crates, like reqwest, etc.
Uri
url
reqwest
At the moment I have to do this:
// Takes `poem::Uri`, results in URL being validated needlessly Ok(Redirect::temporary(poem::http::Uri::from_str(redirect.as_str())?))
I would prefer:
// Takes `Url` type Ok(Redirect::temporary(redirect)) // Takes `String` type Ok(Redirect::temporary(redirect.to_string()))
The text was updated successfully, but these errors were encountered:
You are right, so now the type is changed from Uri to impl Display.
impl Display
Sorry, something went wrong.
Redirect parameter type changed to impl Display. #176
9dd2505
Released in v1.2.44
v1.2.44
Thank you!
No branches or pull requests
Description of the feature
It would be ideal if Poem did not use its own
Uri
and insead used theurl
crate for type-interoperability with other crates, likereqwest
, etc.Code example (if possible)
At the moment I have to do this:
I would prefer:
The text was updated successfully, but these errors were encountered: