Documentation
¶
Index ¶
- type Dialer
- func (d Dialer) Dial(network, addr string) (net.Conn, error)
- func (d Dialer) DialContext(ctx context.Context, network, addr string) (net.Conn, error)
- func (d Dialer) DialGRPC(addr string, timeout time.Duration) (net.Conn, error)
- func (d Dialer) DialGRPCContext(ctx context.Context, addr string) (net.Conn, error)
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
Dialer connects to a HTTP 1.1 server and performs an h2c upgrade to an HTTP2 connection.
func (Dialer) DialContext ¶
DialContext connects to the address on the named network using the provided context.
type Server ¶
type Server struct {
HTTP2Handler http.Handler
NonUpgradeHandler http.Handler
// ALBSupport can be used to enable this listener to work behind a AWS ALB.
// These strip the Connection header for non-websocket upgrades, so we only
// use the Upgrade header in this case. This is not to spec, but seems to
// work OK.
ALBSupport bool
// contains filtered or unexported fields
}
Server is an HTTP 1.1 server that can detect h2c upgrades and serve them by an HTTP2 handler.
Click to show internal directories.
Click to hide internal directories.