github.com/xmplusdev/xray-core@v1.8.10/transport/internet/httpupgrade/httpupgrade.go (about) 1 package httpupgrade 2 3 import ( 4 "context" 5 6 "github.com/xmplusdev/xray-core/common" 7 ) 8 9 //go:generate go run github.com/xmplusdev/xray-core/common/errors/errorgen 10 11 const protocolName = "httpupgrade" 12 13 func init() { 14 common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) { 15 return nil, newError("httpupgrade is a transport protocol.") 16 })) 17 }