htp

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Ip      string
	Port    uint
	Timeout time.Duration
)

Functions

func Delete

func Delete(url string, headers map[string]string, r ...any) (*resty.Response, error)

func Get

func Get(url string, headers map[string]string, r ...any) (*resty.Response, error)

func GetFileUrl

func GetFileUrl(filePath string) string

func GetFullUrl

func GetFullUrl(url string) string

func Post

func Post(url string, headers map[string]string, data any, r ...any) (*resty.Response, error)

func PostFile

func PostFile(url string, headers map[string]string, files map[string]string, r ...any) (*resty.Response, error)

func PostForm

func PostForm(url string, headers map[string]string, data map[string]string, r ...any) (*resty.Response, error)

func Put

func Put(url string, headers map[string]string, data any, r ...any) (*resty.Response, error)

func SaveFile

func SaveFile(url string, headers map[string]string, file ...string) (*resty.Response, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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