useragent

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2023 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenUserAgent

func GenUserAgent(prefix, infoURL string) string

GenUserAgent creates a unique User-Agent string for outgoing HTTP requests.

func Transport

func Transport(prefix, infoURL string, rt http.RoundTripper) http.RoundTripper

Transport wraps a http transport with user agent information.

Types

This section is empty.

Jump to

Keyboard shortcuts

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