useragent

package
v1.6.112 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Header is the User-Agent header key
	// https://www.rfc-editor.org/rfc/rfc7231#section-5.5.3
	Header = `User-Agent`
)

Variables

This section is empty.

Functions

func SetHeaders added in v1.6.105

func SetHeaders(client HeaderSetter)

SetHeaders configures the User-Agent http.Header for the client.

func String

func String() string

String returns the consistent user-agent string for Nomad.

Types

type HeaderSetter added in v1.6.105

type HeaderSetter interface {
	SetHeaders(http.Header)
}

HeaderSetter is anything that implements SetHeaders(http.Header).

Jump to

Keyboard shortcuts

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