Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultTransport http.RoundTripper = &http2.Transport{ AllowHTTP: true, DialTLS: func(netw, addr string, cfg *tls.Config) (net.Conn, error) { d := &net.Dialer{ Timeout: 30 * time.Second, KeepAlive: 30 * time.Second, DualStack: true, } return d.Dial(netw, addr) }, }
DefaultTransport will reroute all https traffic to http. This is to explicitly allow h2c (http2 without TLS) transport. See https://github.com/golang/go/issues/14141 for more details.
Functions ¶
func ListenAndServe ¶
ListenAndServe starts a new server and listens on the `addr`
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.