Documentation ¶
Index ¶
- func Compatible(compatible service.Http) service.Http
- func Server() service.Http
- type Client
- func (c Client) Close()
- func (c Client) Get(ctx context.Context, path string, header http.Header) (status int, respHeader http.Header, respBody []byte, err error)
- func (c Client) Key() (key string)
- func (c Client) Post(ctx context.Context, path string, header http.Header, body []byte) (status int, respHeader http.Header, respBody []byte, err error)
- type ClientConfig
- type Config
- type ConnectionIDGenerator
- type Dialer
- type Printf
- type QuicConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
type ClientConfig ¶ added in v1.0.1
type ClientConfig struct { MaxConnsPerHost int `json:"maxConnsPerHost"` MaxResponseHeaderBytes string `json:"maxResponseHeaderBytes"` Timeout string `json:"timeout"` }
func (*ClientConfig) MaxConnectionsPerHost ¶ added in v1.0.1
func (config *ClientConfig) MaxConnectionsPerHost() (n int)
func (*ClientConfig) MaxResponseHeaderByteSize ¶ added in v1.0.1
func (config *ClientConfig) MaxResponseHeaderByteSize() (n uint64, err error)
func (*ClientConfig) TimeoutDuration ¶ added in v1.0.1
func (config *ClientConfig) TimeoutDuration() (n time.Duration, err error)
type Config ¶ added in v1.0.1
type Config struct { EnableDatagrams bool `json:"enableDatagrams"` MaxHeaderBytes string `json:"maxHeaderBytes"` AdditionalSettings map[uint64]uint64 `json:"additionalSettings"` Quic *QuicConfig `json:"quic"` Client *ClientConfig `json:"client"` Compatible json.RawMessage `json:"compatible"` }
func (*Config) ClientConfig ¶ added in v1.0.1
func (config *Config) ClientConfig() (clientConfig *ClientConfig)
func (*Config) QuicConfig ¶ added in v1.0.1
type ConnectionIDGenerator ¶ added in v1.0.1
type ConnectionIDGenerator struct { }
func (*ConnectionIDGenerator) ConnectionIDLen ¶ added in v1.0.1
func (generator *ConnectionIDGenerator) ConnectionIDLen() int
func (*ConnectionIDGenerator) GenerateConnectionID ¶ added in v1.0.1
func (generator *ConnectionIDGenerator) GenerateConnectionID() (id quic.ConnectionID, err error)
type Dialer ¶ added in v1.0.1
type Dialer struct {
// contains filtered or unexported fields
}
type QuicConfig ¶ added in v1.0.1
type QuicConfig struct { Versions []string `json:"versions"` HandshakeIdleTimeout string `json:"handshakeIdleTimeout"` MaxIdleTimeout string `json:"maxIdleTimeout"` MaxRetryTokenAge string `json:"maxRetryTokenAge"` MaxTokenAge string `json:"maxTokenAge"` InitialStreamReceiveWindow string `json:"initialStreamReceiveWindow"` MaxStreamReceiveWindow string `json:"maxStreamReceiveWindow"` InitialConnectionReceiveWindow string `json:"initialConnectionReceiveWindow"` MaxConnectionReceiveWindow string `json:"maxConnectionReceiveWindow"` MaxIncomingStreams int64 `json:"maxIncomingStreams"` MaxIncomingUniStreams int64 `json:"maxIncomingUniStreams"` StatelessResetKey string `json:"statelessResetKey"` KeepAlivePeriod string `json:"keepAlivePeriod"` DisablePathMTUDiscovery bool `json:"disablePathMtuDiscovery"` DisableVersionNegotiationPackets bool `json:"disableVersionNegotiationPackets"` }
func (*QuicConfig) Convert ¶ added in v1.0.1
func (config *QuicConfig) Convert(EnableDatagrams bool) (quicConfig *quic.Config, err error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.