MCPcopy Create free account
hub / github.com/code-scan/Goal / SetPostValues

Method SetPostValues

Ghttp/post.go:31–34  ·  view source on GitHub ↗

urlpkg.Values 格式的参数

(values url.Values)

Source from the content-addressed store, hash-verified

29
30//urlpkg.Values 格式的参数
31func (h *Http) SetPostValues(values url.Values) {
32 h.HttpBody = strings.NewReader(values.Encode())
33 h.setParams()
34}
35
36//json 格式的参数
37func (h *Http) SetPostJson(values map[string]interface{}) *Http {

Callers 1

PostMethod · 0.95

Calls 1

setParamsMethod · 0.95

Tested by

no test coverage detected