knet

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 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, data url.Values) ([]byte, []*http.Cookie, error)

Types

type SendRequest

type SendRequest struct {
	Name     string
	Method   string
	FetchURL string
	Data     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([]byte, []*http.Cookie, error))

Jump to

Keyboard shortcuts

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