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

add support to custom headers during handshake #29

Merged
merged 2 commits into from
May 23, 2020
Merged

add support to custom headers during handshake #29

merged 2 commits into from
May 23, 2020

Conversation

gszr
Copy link
Contributor

@gszr gszr commented Nov 23, 2017

Add support for passing custom headers to WS handshake.

lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
lib/resty/websocket/client.lua Outdated Show resolved Hide resolved
README.markdown Outdated Show resolved Hide resolved
@gszr
Copy link
Contributor Author

gszr commented Nov 23, 2017

@agentzh please re-review :)

@gszr
Copy link
Contributor Author

gszr commented Jan 23, 2018

@agentzh please let me know if there's anything needed from me here.

Copy link
Member

@agentzh agentzh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will you please rebase to the latest master? I'm seeing merge conflicts in this PR. Sorry for the delay on our side!

lib/resty/websocket/client.lua Show resolved Hide resolved
Add support to custom headers in WS handshake.
t/cs.t Outdated Show resolved Hide resolved
@jeremyjpj0916
Copy link

jeremyjpj0916 commented Sep 27, 2018

Any reason this was never merged? I may have a use case where I also need the ability to add a custom rest Authentication header for the initial ws handshake as well. The application I connect to may accept access in form of a query parameter too though so if that is the case then it won't be needed, but this would be a nice to have feature in the core lib.

@spacewander
Copy link
Member

@doujiang24
Could we merge the PR now?

@doujiang24 doujiang24 merged commit 36b0b30 into openresty:master May 23, 2020
@gszr gszr mentioned this pull request May 25, 2020
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

Successfully merging this pull request may close these issues.

None yet

6 participants