http

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(uri string) ([]byte, error)

Get get请求

func GetWithRespContentType

func GetWithRespContentType(uri string) ([]byte, string, error)

GetWithRespContentType get请求,并返回content-type

func Post

func Post(uri, data, contentType string) ([]byte, error)

Post post请求

func PostJSON

func PostJSON(uri string, data interface{}) ([]byte, error)

PostJSON Post Json 请求

func PostJSONWithRespContentType

func PostJSONWithRespContentType(uri string, obj interface{}) ([]byte, string, error)

PostJSONWithRespContentType post json数据请求,且返回数据类型

Types

This section is empty.

Jump to

Keyboard shortcuts

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