http

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultClient = &http.Client{}
View Source
var DefaultHeader = map[string]string{
	"User-Agent": "jk-http-client/1.7.1",
}

Functions

func Get

func Get(url string, headers ...map[string]string) ([]byte, error)

func Post

func Post(url string, data any, headers ...map[string]string) ([]byte, error)

func Raw

func Raw(method, url string, data []byte, headers map[string]string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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