DefaultHTTPTransport returns a new HTTP Transport that copies values from http.DefaultTransport
()
| 1163 | |
| 1164 | // DefaultHTTPTransport returns a new HTTP Transport that copies values from http.DefaultTransport |
| 1165 | func DefaultHTTPTransport() *http.Transport { |
| 1166 | // This type assertion will panic if http.DefaultTransport ever changes to not be a http.Transport |
| 1167 | // We'll catch this in development/unit testing pretty quickly if it does happen. |
| 1168 | return http.DefaultTransport.(*http.Transport).Clone() |
| 1169 | } |
| 1170 | |
| 1171 | // IsFleeceDeltaError returns true if the given error originates from go-fleecedelta. |
| 1172 | func IsFleeceDeltaError(err error) bool { return errors.As(err, &FleeceDeltaError{}) } |
no outgoing calls