Skip to content

implementation of http.RoundTripper/Transport with extra helpers

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

moul/roundtripper

roundtripper

😄 roundtripper

CI go.dev reference License GitHub release Go Report Card CodeFactor codecov GolangCI Made by Manfred Touron

Usage

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

Install

Using go

$ go get -u moul.io/roundtripper

License

© 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)