reqh2

package
v0.0.0-...-63b02d4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: Apache-2.0 Imports: 13 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
}

Config is the agent HTTP/2 requester configuration

func (Config) String

func (t Config) String() string

Jump to

Keyboard shortcuts

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