实现基本的反向代理

This commit is contained in:
刘祥超
2020-09-27 15:25:52 +08:00
parent cf609dad3f
commit af53fe6610
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)