Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/artyom/useragent
- Owner: artyom
- License: mit
- Created: 2017-08-16T06:03:53.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-08-07T14:35:10.000Z (over 6 years ago)
- Last Synced: 2024-06-20T17:41:42.047Z (5 months ago)
- Topics: go
- Language: Go
- Size: 1.95 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
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://...")