Documentation ¶
Index ¶
- Variables
- func AddHeader(header http.Header, key, value string)
- func Dial(ctx context.Context, dest net.Destination, ...) (stat.Connection, error)
- func ListenHTTPUpgrade(ctx context.Context, address net.Address, port net.Port, ...) (internet.Listener, error)
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetAcceptProxyProtocol() bool
- func (x *Config) GetEd() uint32
- func (x *Config) GetHeader() map[string]string
- func (x *Config) GetHost() string
- func (c *Config) GetNormalizedPath() string
- func (x *Config) GetPath() string
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- type ConnRF
Constants ¶
This section is empty.
Variables ¶
View Source
var File_transport_internet_httpupgrade_config_proto protoreflect.FileDescriptor
Functions ¶
func AddHeader ¶
http.Header.Add() will convert headers to MIME header format. Some people don't like this because they want to send "Web*S*ocket". So we add a simple function to replace that method.
func Dial ¶
func Dial(ctx context.Context, dest net.Destination, streamSettings *internet.MemoryStreamConfig) (stat.Connection, error)
func ListenHTTPUpgrade ¶
Types ¶
type Config ¶
type Config struct { Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` Header map[string]string `` /* 153-byte string literal not displayed */ AcceptProxyProtocol bool `protobuf:"varint,4,opt,name=accept_proxy_protocol,json=acceptProxyProtocol,proto3" json:"accept_proxy_protocol,omitempty"` Ed uint32 `protobuf:"varint,5,opt,name=ed,proto3" json:"ed,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetAcceptProxyProtocol ¶
func (*Config) GetNormalizedPath ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.