crawler

package
v0.0.21 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateCookie added in v0.0.16

func GenerateCookie() string

func Send added in v0.0.16

func Send(request *Request) (*http.Response, error)

Send 发送请求

Types

type Request

type Request struct {
	// 请求地址
	Url string
	// 请求方法
	Method string
	// 请求头
	Headers map[string]string
	// 请求体
	Body io.Reader
	// 请求代理
	Transport http.RoundTripper
	// 请求超时时间
	Timeout time.Duration
}

Jump to

Keyboard shortcuts

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