DialError returns true if the error was caused while dialing TCP or TLS connections, before HTTP data was sent. It is safe to retry a call, if this returns true.
()
| 532 | // TLS connections, before HTTP data was sent. It is safe to retry |
| 533 | // a call, if this returns true. |
| 534 | func (e *proxyError) DialError() bool { |
| 535 | return e.dialingFailed |
| 536 | } |
| 537 | |
| 538 | func copyHeader(to, from http.Header) { |
| 539 | for k, v := range from { |