mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 20:39:36 +03:00
transport: add httpupgrade
This commit is contained in:
17
transport/internet/httpupgrade/httpupgrade.go
Normal file
17
transport/internet/httpupgrade/httpupgrade.go
Normal file
@ -0,0 +1,17 @@
|
||||
package httpupgrade
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/xtls/xray-core/common"
|
||||
)
|
||||
|
||||
//go:generate go run github.com/xtls/xray-core/common/errors/errorgen
|
||||
|
||||
const protocolName = "httpupgrade"
|
||||
|
||||
func init() {
|
||||
common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
|
||||
return nil, newError("httpupgrade is a transport protocol.")
|
||||
}))
|
||||
}
|
Reference in New Issue
Block a user