openresty / lua-resty-websocket

WebSocket support for the ngx_lua module (and OpenResty)
506 stars 106 forks source link

feature: allow custom host header #76

Closed flrgh closed 5 months ago

flrgh commented 2 years ago

:wave: This adds custom host header support to client:connect(). The value of opts.host is used for SNI as well (unless the caller also provides opts.server_name).

I've also added documentation for the recently-added server_name option.


Note: for the sake of not having to clean up merge conflicts when rebasing later on, this has been based off of the branch from #74, since that PR is already approved. If this is not desired, let me know and I'll re-push this without 9a53b4233b829db99aa36d6c751380d6525d50ab.

flrgh commented 2 years ago

ping @xiaocang is there anything else needed from me to accept this changeset? No rush, just checking back in.

flrgh commented 6 months ago

rebased

zhuizhuhaomeng commented 5 months ago

rebase the code in this PR: https://github.com/openresty/lua-resty-websocket/pull/85