Skip to content
New issue

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

Support OpenConnectionArguments::from_url? #115

Closed
WindSoilder opened this issue Nov 28, 2023 · 2 comments
Closed

Support OpenConnectionArguments::from_url? #115

WindSoilder opened this issue Nov 28, 2023 · 2 comments

Comments

@WindSoilder
Copy link

Currently, OpenConnectionArguments needs to specify user, password, host, port separately.

I think it would be good to create such arguments from url, so applications can use less config items.

let arguments = OpenConnectionArguments::from_url("amqp://user:password@localhost:port/virtual_host")
@gftea
Copy link
Owner

gftea commented Nov 28, 2023

already support, see https://github.com/gftea/amqprs/blob/main/amqprs/src/api/connection.rs#L1406
just enable urispec feature

@WindSoilder
Copy link
Author

Oh! Really sorry for my careless search. Thanks for your support :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants