web

package
v0.3.4 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: 14 Imported by: 1

Documentation

Index

Constants

View Source
const HTTP_CONTENT_TYPE_FORM = "application/x-www-form-urlencoded"
View Source
const HTTP_CONTENT_TYPE_JSON = "application/json; charset=UTF-8"

Variables

This section is empty.

Functions

func HttpDelete

func HttpDelete(uri, tokenString string, params interface{}) ([]byte, error)

func HttpGet

func HttpGet(uri, tokenString string, params interface{}) ([]byte, error)

func HttpGetNoToken

func HttpGetNoToken(uri string, params interface{}) ([]byte, error)

func HttpGetNoTokenTimeout added in v0.2.122

func HttpGetNoTokenTimeout(uri string, params interface{}, timeoutSecond *int) ([]byte, error)

func HttpPost

func HttpPost(uri, tokenString string, params interface{}) ([]byte, error)

func HttpPostFile

func HttpPostFile(url string, tokenString string, paramTexts map[string]string, paramFilename, paramFilepath string) (string, error)

func HttpPostNoToken

func HttpPostNoToken(uri string, params interface{}) ([]byte, error)

func HttpPut

func HttpPut(uri, tokenString string, params interface{}) ([]byte, error)

func HttpPutFile

func HttpPutFile(url string, tokenString string, paramTexts map[string]string, paramFilename, paramFilepath string) (string, error)

func HttpRequest

func HttpRequest(httpMethod, uri, tokenString string, params interface{}, timeoutSecond *int) ([]byte, error)

func HttpRequestFile

func HttpRequestFile(httpMethod, url string, tokenString string, paramTexts map[string]string, paramFilename, paramFilepath string) (string, error)

func HttpUploadFileByStream

func HttpUploadFileByStream(uri, filefullpath string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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