clients

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HeaderUserAgent = "User-Agent"
)

Variables

This section is empty.

Functions

func WithUserAgent

func WithUserAgent(userAgent string) policy.Policy

WithUserAgent returns a policy.Policy that adds an HTTP extension header of `User-Agent` whose value is passed and has no length limitation

Types

type UserAgentPolicy

type UserAgentPolicy struct {
	UserAgent string
}

func (UserAgentPolicy) Do

Jump to

Keyboard shortcuts

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