github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/transport/internet/request/assembly/assembly.go (about)

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