chronoxor / NetCoreServer

Ultra fast and low latency asynchronous socket server & client C# .NET Core library with support TCP, SSL, UDP, HTTP, HTTPS, WebSocket protocols and 10K connections problem solution
https://chronoxor.github.io/NetCoreServer
MIT License
2.77k stars 576 forks source link

made possible to append extra response http headers in PerformServerUpgrade stage #297

Open lifeengines opened 6 months ago

lifeengines commented 6 months ago

made response header ended up before OnWsConnecting so we can append extra handshake header to response

lifeengines commented 6 months ago

some websocket protocol has extra handshake headers,we need deal with append some extra response http headers in PerformServerUpgrade stage,but currentlly netcoreserver don't has a mechanism to do this,so we can adjust SetBody in PerformServerUpgrade to after OnWsConnecting so can be made possible append extra http header in OnWsConnecting event.