http

package
v0.6.18 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HTTP_LOG_ENABLE_KEY = "server.http.log.params"
)

Variables

This section is empty.

Functions

func Get

func Get(serviceName string, path string, headers map[string]string, params map[string]interface{}, result interface{}) (int, error)

func GetUrl

func GetUrl(url string, headers map[string]string, params map[string]interface{}, result interface{}) (int, error)

func GetUrlWithTimeout added in v0.6.12

func GetUrlWithTimeout(url string, headers map[string]string, params map[string]interface{}, result interface{}, timeout time.Duration) (int, error)

func GetWithTimeout added in v0.6.12

func GetWithTimeout(serviceName string, path string, headers map[string]string, params map[string]interface{}, result interface{}, timeout time.Duration) (int, error)

func Post

func Post(serviceName string, path string, headers map[string]string, params map[string]interface{}, result interface{}) (int, error)

func PostFile

func PostFile(url string, headers map[string]string, params map[string]interface{}, files map[string]*request.File, result interface{}) (int, error)

func PostFileWithTimeout added in v0.6.12

func PostFileWithTimeout(url string, headers map[string]string, params map[string]interface{}, files map[string]*request.File, result interface{}, timeout time.Duration) (int, error)

func PostFormData added in v0.6.6

func PostFormData(serviceName string, path string, headers map[string]string, params url.Values, result interface{}) (int, error)

func PostFormDataUrl added in v0.6.6

func PostFormDataUrl(url string, headers map[string]string, params url.Values, result interface{}) (int, error)

func PostFormDataUrlWithTimeout added in v0.6.12

func PostFormDataUrlWithTimeout(url string, headers map[string]string, params url.Values, result interface{}, timeout time.Duration) (int, error)

func PostFormDataWithTimeout added in v0.6.12

func PostFormDataWithTimeout(serviceName string, path string, headers map[string]string, params url.Values, result interface{}, timeout time.Duration) (int, error)

func PostJSON

func PostJSON(serviceName string, path string, headers map[string]string, params interface{}, result interface{}) (int, error)

func PostJSONUrl

func PostJSONUrl(url string, headers map[string]string, params interface{}, result interface{}) (int, error)

func PostJSONUrlWithTimeout added in v0.6.12

func PostJSONUrlWithTimeout(url string, headers map[string]string, params interface{}, result interface{}, timeout time.Duration) (int, error)

func PostJSONWithTimeout added in v0.6.12

func PostJSONWithTimeout(serviceName string, path string, headers map[string]string, params interface{}, result interface{}, timeout time.Duration) (int, error)

func PostUrl

func PostUrl(url string, headers map[string]string, params map[string]interface{}, result interface{}) (int, error)

func PostUrlWithTimeout added in v0.6.12

func PostUrlWithTimeout(url string, headers map[string]string, params map[string]interface{}, result interface{}, timeout time.Duration) (int, error)

func PostWithTimeout added in v0.6.12

func PostWithTimeout(serviceName string, path string, headers map[string]string, params map[string]interface{}, result interface{}, timeout time.Duration) (int, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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