1
0
mirror of https://github.com/restic/restic.git synced 2024-06-29 08:10:52 +02:00
restic/internal/backend/rest
greatroar d4aadfa389 all: Drop ctxhttp
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.
2022-10-14 14:33:49 +02:00
..
config_test.go backend/rest: Ensure base URL ends with slash 2018-04-01 10:18:38 +02:00
config.go Hide password from repository URLs 2020-09-22 22:00:51 +02:00
rest_int_go114_test.go rest: Adjust http2 missing eof test to golang >= 1.17.3, >= 1.16.10 2021-11-13 21:57:30 +01:00
rest_int_test.go Use "pack file" instead of "data file" (#2885) 2020-08-16 11:16:38 +02:00
rest_test.go rest: Fix test backend url 2021-08-15 18:16:17 +02:00
rest.go all: Drop ctxhttp 2022-10-14 14:33:49 +02:00