util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_HEADER_PLACEHOLDER = "\n"
)

Variables

View Source
var (
	// all supported impersonate names
	Impersonates []string
)

Functions

func FetchUrl

func FetchUrl(req *http.Request, impersonate string, insecure bool, timeout int, proxy string,
	headers map[string]string) (*http.Response, error)

func ParseProxyFromEnv added in v0.4.0

func ParseProxyFromEnv(urlStr string) string

Parse standard HTTP_PROXY, HTTPS_PROXY, NO_PROXY (and lowercase versions) envs, return proxy for urlStr.

Types

This section is empty.

Jump to

Keyboard shortcuts

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