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

How can I modify client request headers to include a bearer token? #24

Closed
jamin-chen opened this issue Nov 20, 2024 · 2 comments
Closed

Comments

@jamin-chen
Copy link

The websocket API that I'm talking to requires us to provide an API key via the header, but I couldn't find anything in picows that would allow me to set this.

@tarasko
Copy link
Owner

tarasko commented Nov 22, 2024

It is not available at the moment, but it would be very easy to add.
Just another parameter extra_headers to ws_connect. I will include this into the next release

@tarasko tarasko closed this as completed Nov 27, 2024
@tarasko
Copy link
Owner

tarasko commented Nov 27, 2024

@jamin-chen Yes, you can. I've just released 1.7.1 where you can pass extra headers to ws_connect

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