useragent

package
v1.5.12 Latest Latest
Warning

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

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

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.5.0

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.5.0

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