😄 roundtripper
import "moul.io/roundtripper"
client := http.Client{
Transport: &roundtripper.Transport{
ExtraHeader: http.Header{
"Authorization": []string{"Bearer LoremIpsumDolorSitAmet..."},
},
},
}
client.Get("...")
See https://pkg.go.dev/moul.io/roundtripper
$ go get -u moul.io/roundtripper
© 2020 Manfred Touron
Licensed under the Apache License, Version 2.0 (LICENSE-APACHE
) or the MIT license (LICENSE-MIT
), at your option. See the COPYRIGHT
file for more details.
SPDX-License-Identifier: (Apache-2.0 OR MIT)