Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/artyom/useragent

http.RoundTripper wrapper to set User-Agent header on each http request made
https://github.com/artyom/useragent

go

Last synced: about 14 hours ago
JSON representation

http.RoundTripper wrapper to set User-Agent header on each http request made

Awesome Lists containing this project

README

        

See [godoc](https://godoc.org/github.com/artyom/useragent) for details.

Package useragent provides http.RoundTripper wrapper to set User-Agent
header on each http request made.

Basic usage:

client := &http.Client{
Transport: useragent.Set(http.DefaultTransport, "MyRobot/1.0"),
}
resp, err := client.Get("https://...")