实现基本的反向代理

This commit is contained in:
GoEdgeLab
2020-09-27 15:25:52 +08:00
parent 58f6b28d29
commit a737e5cb20
6 changed files with 153 additions and 33 deletions

View File

@@ -72,6 +72,11 @@ func (this Protocol) Primary() Protocol {
}
}
// Scheme
func (this Protocol) Scheme() string {
return string(this)
}
// 转换为字符串
func (this Protocol) String() string {
return string(this)