http

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDefaultAzureClientOptsWithCloud added in v1.1.1

func GetDefaultAzureClientOptsWithCloud(cloudConfig azcloud.Configuration) azcore.ClientOptions

func GetDefaultIMDSRetryPolicy added in v1.1.3

func GetDefaultIMDSRetryPolicy() retryablehttp.CheckRetry

GetDefaultIMDSRetryPolicy can be applied to a retryablehttp.Client to correctly handle HTTP status codes according to IMDS retry guidance. Note that this retry policy does NOT handle extra status codes that would normally be considered retryable when acquiring MSI access tokens from IMDS.

func GetManagedIdentityClientOpts added in v1.1.1

func GetManagedIdentityClientOpts() azcore.ClientOptions

func GetUserAgent added in v1.1.1

func GetUserAgent() string

GetUserAgent returns the common User-Agent header value used in all RPCs and HTTP calls.

func NewRetryableClient

func NewRetryableClient(ctx context.Context) *retryablehttp.Client

NewRetryableClient returns a *retryablehttp.Client with a custom transport which injects a specialized user agent string into the "User-Agent" header.

Types

This section is empty.

Jump to

Keyboard shortcuts

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