mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 09:30:26 +08:00
15 lines
238 B
Go
15 lines
238 B
Go
|
|
package nodes
|
||
|
|
|
||
|
|
// 处理反向代理
|
||
|
|
func (this *HTTPRequest) doReverseProxy() {
|
||
|
|
// 判断是否为Websocket请求
|
||
|
|
if this.RawReq.Header.Get("Upgrade") == "websocket" {
|
||
|
|
this.doWebsocket()
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
// 普通HTTP请求
|
||
|
|
// TODO
|
||
|
|
}
|
||
|
|
|