splithttp.go 431 B

123456789101112131415161718
  1. package splithttp
  2. import (
  3. "context"
  4. "github.com/xtls/xray-core/common"
  5. "github.com/xtls/xray-core/common/errors"
  6. )
  7. //go:generate go run github.com/xtls/xray-core/common/errors/errorgen
  8. const protocolName = "splithttp"
  9. func init() {
  10. common.Must(common.RegisterConfig((*Config)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {
  11. return nil, errors.New("splithttp is a transport protocol.")
  12. }))
  13. }