_http

package
v0.0.0-...-08474b0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: GPL-3.0 Imports: 13 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, headers []domain.Header) (ret []byte, code int, 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