http

package
v0.0.0-...-2083224 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Post

func Post(url string, bodyType string, body io.Reader) (response string, err error)

Post post body

func PostForm

func PostForm(url string, data url.Values) (response string, err error)

PostForm post form data

func PostFormTimeout

func PostFormTimeout(url string, data url.Values) (string, error)

PostFormTimeout 通过client的Do方法执行

func PostHTTPSJSONString

func PostHTTPSJSONString(finalURL, _json string) (response string, err error)

PostHTTPSJSONString post json string and return response string

func PostJSONObj

func PostJSONObj(finalURL, _json string, response interface{}) (err error)

PostJSONObj post json object

func PostJSONString

func PostJSONString(finalURL, _json string) (response string, err error)

PostJSONString post json string and return response string

func PostRawJSON

func PostRawJSON(finalURL string, req []byte, response interface{}) (err error)

PostRawJSON post json []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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