knet

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebGet

func WebGet(urlStr string, headers map[string]string, cookies []*http.Cookie) ([]byte, []*http.Cookie, error)

func WebPost

func WebPost(urlStr string, headers map[string]string, cookies []*http.Cookie, from_ url.Values, data io.Reader) ([]byte, []*http.Cookie, error)

Types

type SendRequest

type SendRequest struct {
	Name     string
	Method   string
	FetchURL string
	Data     io.Reader
	From     url.Values
	Cookies  []*http.Cookie
	Headers  map[string]string
}

func (*SendRequest) SaveFile

func (S *SendRequest) SaveFile(fileName, method string, body []byte) error

func (*SendRequest) Send

func (s *SendRequest) Send(callBack func(resp []byte, cookies []*http.Cookie, err error))

Jump to

Keyboard shortcuts

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