httpx

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRequest

func GetRequest(ctx context.Context, client *http.Client, urlStr string) (*http.Response, error)

GetRequest 封装了HTTP GET请求的逻辑。

func PostRequest

func PostRequest(ctx context.Context, client *http.Client, urlStr string, body io.Reader, headers map[string]string) (
	*http.Response, error)

PostRequest 封装了HTTP POST请求的逻辑。

Types

This section is empty.

Jump to

Keyboard shortcuts

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