httptool

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetWithCookieParams

func GetWithCookieParams(info RequestInfo) (resp *http.Response, err error)

GetWithCookieParams 发送带cookie和params的请求

@param info 传入的参数、url、cookie信息
@return res
@return err

func GetWithParams

func GetWithParams(info RequestInfo) (resp *http.Response, err error)

GetWithParams 发送带cookie和params的请求

@param info 传入的参数、url、cookie信息
@return res
@return err

func GetWithParamsWithTimestamp added in v1.0.1

func GetWithParamsWithTimestamp(info RequestInfo) (resp *http.Response, err error)

GetWithParamsWithTimestamp 发送带cookie和params的请求

@param info 传入的参数、url、cookie信息
@return res
@return err

func PostWithParams

func PostWithParams(info RequestInfo) (resp *http.Response, err error)

PostWithParams WithTimestamp 发送带Cookie Params的POST请求

@param info
@return resp
@return err

func PostWithTimestamp added in v1.0.1

func PostWithTimestamp(info RequestInfo) (resp *http.Response, err error)

PostWithTimestamp 发送带Cookie Params的POST请求

Types

type RequestInfo

type RequestInfo struct {
	URL     string
	Cookies []*http.Cookie
	Params  map[string][]string
}

RequestInfo 请求字段的结构体

Jump to

Keyboard shortcuts

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