openresty / lua-resty-websocket

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

feature: support custom host header in client. #85

Closed zhuizhuhaomeng closed 6 months ago

zhuizhuhaomeng commented 6 months ago

This allows callers of client:connect() to specify a custom host header. This option also overrides the default SNI if not explicitly set. It also adds documentation and tests for the recently-added server_name option.