mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-12 22:40:25 +08:00
实现websocket基本功能
This commit is contained in:
14
internal/nodes/http_request_reverse_proxy.go
Normal file
14
internal/nodes/http_request_reverse_proxy.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package nodes
|
||||
|
||||
// 处理反向代理
|
||||
func (this *HTTPRequest) doReverseProxy() {
|
||||
// 判断是否为Websocket请求
|
||||
if this.RawReq.Header.Get("Upgrade") == "websocket" {
|
||||
this.doWebsocket()
|
||||
return
|
||||
}
|
||||
|
||||
// 普通HTTP请求
|
||||
// TODO
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user