reqh2

package
v3.0.0-beta13 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UDSPrefix  = "http:///"
	InetPrefix = "https://"
)

Variables

This section is empty.

Functions

func NewInet

func NewInet(config Config) (apiClient *api.ClientWithResponses, err error)

NewInet returns api *api.ClientWithResponses from config.

request authorization header will be created from one of config properties:
- Username & Password
- Bearer
- Authorization

func NewUDS

func NewUDS(config Config) (apiClient *api.ClientWithResponses, err error)

Types

type Config

type Config struct {
	Certificate        string
	Key                string
	Username           string
	Password           string `json:"-"`
	URL                string `json:"url"`
	Authorization      string `json:"-"`
	Bearer             string `json:"-"`
	Timeout            time.Duration
	InsecureSkipVerify bool
	RootCA             string
	Tokens             tokencache.Entry
}

Config is the agent HTTP/2 requester configuration

func (Config) String

func (t Config) String() string

type RefreshTransport

type RefreshTransport struct {
	Base http.RoundTripper

	Username string
	Password string
	// contains filtered or unexported fields
}

func (*RefreshTransport) RoundTrip

func (t *RefreshTransport) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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