http

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: Apache-2.0 Imports: 17 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 any) (*response.Response, error)

func GetUrl

func GetUrl(url string, headers map[string]string, params map[string]interface{}, result interface{}) (*response.Response, error)

func GetUrlWithTimeout added in v0.6.12

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

func GetWithTimeout added in v0.6.12

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

func Post

func Post(serviceName string, path string, headers map[string]string, params map[string]interface{}, result interface{}) (*response.Response, error)

func PostFile

func PostFile(url string, headers map[string]string, params map[string]interface{}, files map[string]*request.File, result any) (*response.Response, 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 any, timeout time.Duration) (*response.Response, error)

func PostFormData added in v0.6.6

func PostFormData(serviceName string, path string, headers map[string]string, params url.Values, result any) (*response.Response, error)

func PostFormDataUrl added in v0.6.6

func PostFormDataUrl(url string, headers map[string]string, params url.Values, result any) (*response.Response, error)

func PostFormDataUrlWithTimeout added in v0.6.12

func PostFormDataUrlWithTimeout(url string, headers map[string]string, params url.Values, result any, timeout time.Duration) (*response.Response, error)

func PostFormDataWithTimeout added in v0.6.12

func PostFormDataWithTimeout(serviceName string, path string, headers map[string]string, params url.Values, result any, timeout time.Duration) (*response.Response, error)

func PostJSON

func PostJSON(serviceName string, path string, headers map[string]string, params interface{}, result interface{}) (*response.Response, error)

func PostJSONUrl

func PostJSONUrl(url string, headers map[string]string, params interface{}, result interface{}) (*response.Response, error)

func PostJSONUrlWithTimeout added in v0.6.12

func PostJSONUrlWithTimeout(url string, headers map[string]string, params any, result any, timeout time.Duration) (*response.Response, error)

func PostJSONWithTimeout added in v0.6.12

func PostJSONWithTimeout(serviceName string, path string, headers map[string]string, params any, result any, timeout time.Duration) (*response.Response, error)

func PostUrl

func PostUrl(url string, headers map[string]string, params map[string]interface{}, result interface{}) (*response.Response, error)

func PostUrlWithTimeout added in v0.6.12

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

func PostWithTimeout added in v0.6.12

func PostWithTimeout(serviceName string, path string, headers map[string]string, params map[string]interface{}, result any, timeout time.Duration) (*response.Response, 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