tool

package
v1.1.0-20220312 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2022 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Cookie cookie
View Source
var File file
View Source
var HTTP = httP{
	DefaultHeader: map[string]interface{}{
		"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36",
	},
	DefaultTransport: &http.Transport{
		DialContext: (&net.Dialer{
			Timeout: time.Second * 30,
		}).DialContext,
		TLSHandshakeTimeout: time.Second * 30,
	},
}
View Source
var Rand ranD
View Source
var Regexp reg
View Source
var Time timE

Functions

This section is empty.

Types

type FullRequest

type FullRequest struct {
	Type              string
	Url               string
	Header            map[string]interface{}
	Query             map[string]interface{}
	Body              interface{}
	Cookie            map[string]string
	Redirect          bool
	RedirectCookieJar bool
	Transport         *http.Transport
}

type GenTransport

type GenTransport struct {
	Timeout           time.Duration
	LocalAddr         net.Addr
	IdleConnTimeout   time.Duration
	SkipSslCertVerify bool
}

type GetRequest

type GetRequest struct {
	Url               string
	Header            map[string]interface{}
	Query             map[string]interface{}
	Cookie            map[string]string
	Redirect          bool
	RedirectCookieJar bool
	Transport         *http.Transport
}

type PostRequest

type PostRequest struct {
	Url               string
	Header            map[string]interface{}
	Query             map[string]interface{}
	Body              interface{}
	Cookie            map[string]string
	Redirect          bool
	RedirectCookieJar bool
	Transport         *http.Transport
}

Jump to

Keyboard shortcuts

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