Documentation ¶
Index ¶
- type URL
- func (u *URL) GetURL() *url.URL
- func (u *URL) IsHTTPOrHTTPS() bool
- func (u *URL) MarshalYAML() (interface{}, error)
- func (u *URL) NewDialFunc(ac *promauth.Config) (fasthttp.DialFunc, error)
- func (u *URL) SetFasthttpHeaders(ac *promauth.Config, req *fasthttp.Request) error
- func (u *URL) SetHeaders(ac *promauth.Config, req *http.Request) error
- func (u *URL) String() string
- func (u *URL) UnmarshalYAML(unmarshal func(interface{}) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type URL ¶
URL implements YAML.Marshaler and yaml.Unmarshaler interfaces for url.URL.
func MustNewURL ¶ added in v1.56.0
MustNewURL returns new URL for the given u.
func (*URL) IsHTTPOrHTTPS ¶ added in v1.58.0
IsHTTPOrHTTPS returns true if u is http or https
func (*URL) MarshalYAML ¶
MarshalYAML implements yaml.Marshaler interface.
func (*URL) NewDialFunc ¶
NewDialFunc returns dial func for the given u and ac.
func (*URL) SetFasthttpHeaders ¶ added in v1.79.0
SetFasthttpHeaders sets headers to req according to u and ac configs.
func (*URL) SetHeaders ¶ added in v1.79.0
SetHeaders sets headers to req according to u and ac configs.
func (*URL) UnmarshalYAML ¶
UnmarshalYAML implements yaml.Unmarshaler interface.
Click to show internal directories.
Click to hide internal directories.