proxy

package
v1.71.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2021 License: Apache-2.0 Imports: 13 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type URL

type URL struct {
	// contains filtered or unexported fields
}

URL implements YAML.Marshaler and yaml.Unmarshaler interfaces for url.URL.

func MustNewURL added in v1.56.0

func MustNewURL(u string) *URL

MustNewURL returns new URL for the given u.

func (*URL) GetAuthHeader added in v1.58.0

func (u *URL) GetAuthHeader(ac *promauth.Config) string

GetAuthHeader returns Proxy-Authorization auth header for the given u and ac.

func (*URL) IsHTTPOrHTTPS added in v1.58.0

func (u *URL) IsHTTPOrHTTPS() bool

IsHTTPOrHTTPS returns true if u is http or https

func (*URL) MarshalYAML

func (u *URL) MarshalYAML() (interface{}, error)

MarshalYAML implements yaml.Marshaler interface.

func (*URL) NewDialFunc

func (u *URL) NewDialFunc(ac *promauth.Config) (fasthttp.DialFunc, error)

NewDialFunc returns dial func for the given u and ac.

func (*URL) String added in v1.56.0

func (u *URL) String() string

String returns string representation of u.

func (*URL) URL

func (u *URL) URL() *url.URL

URL return the underlying url.

func (*URL) UnmarshalYAML

func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error

UnmarshalYAML implements yaml.Unmarshaler interface.

Jump to

Keyboard shortcuts

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