httputils

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrJson = errors.New("错误的格式")

Functions

func GetAny added in v0.1.0

func GetAny(ctx context.Context, hc *http.Client, u string, addTag bool) (clash.Clash, []any, []string, error)

func GetClash

func GetClash(ctx context.Context, hc *http.Client, u string, addTag bool) (clash.Clash, error)

func HttpGet

func HttpGet(cxt context.Context, c *http.Client, url string, maxByte int64) ([]byte, error)

Types

type Errpget

type Errpget struct {
	Msg string
	// contains filtered or unexported fields
}

func (Errpget) Error

func (h Errpget) Error() string

Jump to

Keyboard shortcuts

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