http

package
v0.40.4 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Api

func Api(api string, args ...interface{}) (rs []byte, err error)

Api http api

func Do

func Do(url, method string, out int, args ...[]string) (*http.Response, error)

Do http.Do

func DoGet

func DoGet(url string, args ...interface{}) (*http.Response, error)

DoGet http.Do get

func DoPost

func DoPost(url string, args ...interface{}) (*http.Response, error)

DoPost http.Do post

func Get

func Get(api string, args ...url.Values) ([]byte, error)

Get http get

func GetRandomUserAgent

func GetRandomUserAgent(args ...[]string) string

GetRandomUserAgent get random UserAgent

func Post

func Post(api string, args ...interface{}) ([]byte, error)

Post http post, params is url.Values type

func PostFile

func PostFile(filename, targetUrl, upParam string) (string, error)

PostFile post file

Types

type Map

type Map map[string]interface{}

Map a [string]interface{} map

Jump to

Keyboard shortcuts

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