network

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(url string, queryParams map[string]string, headers map[string]string) (resp *rest.Response, err error)

func GetJson

func GetJson(url string, queryParams map[string]string, headers map[string]string) (byts []byte, err error)

func Post

func Post(url string, body []byte, headers map[string]string) (resp *rest.Response, err error)

func PostForQueryParam

func PostForQueryParam(url string, queryParams map[string]string, headers map[string]string) (resp *rest.Response, err error)

func PostForWWWForm

func PostForWWWForm(urlStr string, params map[string]string, headers map[string]string) (map[string]interface{}, error)

func PostForWWWFormForAll

func PostForWWWFormForAll(urlStr string, bodyData io.Reader, headers map[string]string) ([]byte, error)

func PostForWWWFormForBytres

func PostForWWWFormForBytres(urlStr string, params map[string]string, headers map[string]string) ([]byte, error)

func PostForWWWFormReXML

func PostForWWWFormReXML(urlStr string, params map[string]string, headers map[string]string) ([]byte, error)

func Put

func Put(url string, body []byte, headers map[string]string) (resp *rest.Response, err error)

func RequestBoy

func RequestBoy(url string, body []byte, headers map[string]string, method rest.Method) (resp *rest.Response, err error)

func RequestBoyForQueryParam

func RequestBoyForQueryParam(url string, queryParams map[string]string, headers map[string]string, method rest.Method) (resp *rest.Response, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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