-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add headers to ClientSession.ws_connect. #785
Comments
Does session headers satisfy your requirements or do you need temporary headers specific to |
The latter. Some headers can be global, e.g. I set the content type in the Session headers but the ws_connect does not need them. |
That makes sense. Would you provide a Pull Request? |
vaskalas
added a commit
to vaskalas/aiohttp
that referenced
this issue
Jun 2, 2016
asvetlov
added a commit
that referenced
this issue
Jun 3, 2016
added headers to ClientSession.ws_connnect #785
3 tasks
Fixed by #898 |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The documentation says bare
aiohttp.ws_connect
is deprecated andClientSession.ws_connect
should be used instead.However, the latter has less features than the former.
ClientSession.ws_connect
does not have theheaders
keyword argument to allow us to add any headers we want whileaiohttp.ws_connect
does.The text was updated successfully, but these errors were encountered: