github.com/xtls/xray-core@v1.8.12-0.20240518155711-3168d27b0bdb/transport/internet/httpupgrade/httpupgrade.go (about) 1 package httpupgrade 2 3 import ( 4 "context" 5 6 "github.com/xtls/xray-core/common" 7 ) 8 9 //go:generate go run github.com/xtls/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 }