tool

package module
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2022 License: MIT Imports: 19 Imported by: 18

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

func Recover added in v0.6.2

func Recover()

Types

type FullRequest added in v0.2.7

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 added in v0.5.3

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

type GetRequest added in v0.2.2

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 added in v0.2.2

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