http

package
v1.0.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseJson

func ParseJson(res string) (*fastjson.Value, error)

func PostForm

func PostForm(
	reqbody map[string]interface{},
	url string,
	actionHandler func(res http.ResponseWriter, req *http.Request),
) (respBody string, err error)

func PostJson

func PostJson(
	reqbody map[string]interface{},
	url string,
	actionHandler func(res http.ResponseWriter, req *http.Request),
) (respBody string, err error)

PostJson 发送 json 请求

Types

type ReqBody

type ReqBody map[string]interface{}

Jump to

Keyboard shortcuts

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