mirror of
https://github.com/restic/restic.git
synced 2025-12-21 23:30:07 -05:00
This package is no longer needed, since we can use the stdlib's http.NewRequestWithContext. backend/rclone already did, but it needed a different error check due to a difference between net/http and ctxhttp. Also, store the http.Client by value in the REST backend (changed to a pointer when ctxhttp was introduced) and use errors.WithStack instead of errors.Wrap where the message was no longer accurate. Errors from http.NewRequestWithContext will start with "net/http" or "net/url", so they're easy to identify. |
||
|---|---|---|
| .. | ||
| config.go | ||
| config_test.go | ||
| rest.go | ||
| rest_int_go114_test.go | ||
| rest_int_test.go | ||
| rest_test.go | ||