Home | History | Annotate | Download | only in http

Lines Matching defs:String

86 	altProto atomic.Value // of nil or map[string]RoundTripper, key is URI scheme
97 DialContext func(ctx context.Context, network, addr string) (net.Conn, error)
104 Dial func(network, addr string) (net.Conn, error)
115 DialTLS func(network, addr string) (net.Conn, error)
181 TLSNextProto map[string]func(authority string, c *tls.Conn) RoundTripper
261 var proxy string
347 altProto, _ := t.altProto.Load().(map[string]RoundTripper)
470 func (t *Transport) RegisterProtocol(scheme string, rt RoundTripper) {
473 oldMap, _ := t.altProto.Load().(map[string]RoundTripper)
477 newMap := make(map[string]RoundTripper)
535 names: []string{"HTTP_PROXY", "http_proxy"},
538 names: []string{"HTTPS_PROXY", "https_proxy"},
541 names: []string{"NO_PROXY", "no_proxy"},
549 names []string
551 val string
554 func (e *envOnce) Get() string {
593 func (cm *connectMethod) proxyAuth() string {
631 func (e transportReadFromServerError) Error() string {
847 func (t *Transport) dial(ctx context.Context, network, addr string) (net.Conn, error) {
1141 func useProxy(addr string) bool {
1191 // connectMethod is the map key (in its String form) for keeping persistent
1207 targetScheme string // "http" or "https"
1208 targetAddr string // Not used if proxy + http targetScheme (4th example in table)
1215 proxyStr = cm.proxyURL.String()
1228 func (cm *connectMethod) addr() string {
1237 func (cm *connectMethod) tlsHost() string {
1246 // stringified proxy URL (or the empty string) instead of a pointer to
1249 proxy, scheme, addr string
1252 func (k connectMethodKey) String() string {
1797 err string
1801 func (e *httpError) Error() string { return e.err }
1984 var portMap = map[string]string{
1990 func canonicalAddr(url *url.URL) string {
2114 func (tlsHandshakeTimeoutError) Error() string { return "net/http: TLS handshake timeout" }
2176 func validPort(p string) bool {