useragent

package
v0.13.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set struct {
	Transport http.RoundTripper
}

Set is a http.RoundTripper which adds the User-Agent header to all requests.

func (*Set) RoundTrip

func (a *Set) RoundTrip(r *http.Request) (*http.Response, error)

RoundTrip sets the User-Agent on the request and then calls the underlying Transport.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL