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) {
return net.Dial(netw, addr)
},
}
NewTransport 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 ¶
func ListenAndServe(addr string, h http.Handler) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.