_httpUtils

package
v0.0.0-...-add256a Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Verbose = true
)

Variables

This section is empty.

Functions

func AddDefaultUrlSchema

func AddDefaultUrlSchema(urlStr string) (ret string, err error)

func AddSepIfNeeded

func AddSepIfNeeded(utl string) string

func CombineUrls

func CombineUrls(base, uri string) (ret string)

func GenUrlWithParams

func GenUrlWithParams(pth string, params map[string]interface{}, baseUrl string) (url string)

func Get

func Get(url string) (ret []byte, err error)

func IsSuccessCode

func IsSuccessCode(code int) (success bool)

func Post

func Post(url string, data interface{}) (ret []byte, err error)

func PostOrPut

func PostOrPut(url string, method string, data interface{}) (ret []byte, err error)

func Put

func Put(url string, data interface{}) (ret []byte, 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