httpHelper

package
v0.0.0-...-a97389e Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

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

func GetCheckForward

func GetCheckForward(url, token string) (ret []byte, isForward bool, err error)

func IsSuccessCode

func IsSuccessCode(code int) (success bool)

func Login

func Login() (ret string)

func Post

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

func PostOrPut

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

func Put

func Put(url, token 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