net

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2022 License: MulanPSL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(_url string, header http.Header, params url.Values, timeout time.Duration) (*http.Response, error)

func GetUrl

func GetUrl(_url string, params url.Values) (string, error)

func Post

func Post(_url string, header http.Header, params map[string]string, files map[string]string, timeout time.Duration) (*http.Response, error)

_url: 如果出现error:first path segment in URL cannot contain colon. 那么前面加上http:// files: key-FormName,value-FileName

Types

This section is empty.

Jump to

Keyboard shortcuts

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