-
Notifications
You must be signed in to change notification settings - Fork 30
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
Ability to add custom headers and query params #153
Comments
Hi @u382514 yes i guess if we take additional parameter to the In case i can help on this :) |
@wolf4ood I think we should go one step further if you agree (while still keeping everything backwards compatible). The ability to add a URL (url::Url) to the connection options which would parse out the URL given and any query params it has. We can then backfill the host, port, query, path and credentials in the connection options for information purposes. Of course everything will continue to be backwards compatible by simply leaving url set to None and utilizing host, port, query, path and credentials params as usual. Notes:
Let me know your thoughts.
|
On the initial connect/upgrade we need the ability to add custom headers (think IAM/Sigv4 for Neptune or custom auth outside of basic) and the ability to add query params to the URL.
websocket::ClientBuilder has 'custom_headers' on the builder to do this and connect_async_with_tls_connector can this by supplying a full request.
Looks like adding query params can be completed by enhancing the websocket_url function.
Is there any reason we shouldn't go ahead with adding these features?
The text was updated successfully, but these errors were encountered: