transport

package
v0.5.1-rc3 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UserAgentTransport

type UserAgentTransport struct {
	Base http.RoundTripper

	// UserAgent string to set in the request header.
	UserAgent string
}

UserAgentTransport is an http.RoundTripper that sets a User-Agent header.

func (*UserAgentTransport) RoundTrip

func (t *UserAgentTransport) RoundTrip(r *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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