MCPcopy Index your code
hub / github.com/go-dev-frame/sponge / SetParams

Method SetParams

pkg/httpcli/httpcli.go:69–78  ·  view source on GitHub ↗

SetParams parameters after setting the URL

(params map[string]interface{})

Source from the content-addressed store, hash-verified

67
68// SetParams parameters after setting the URL
69func (req *Request) SetParams(params map[string]interface{}) *Request {
70 if req.params == nil {
71 req.params = params
72 } else {
73 for k, v := range params {
74 req.params[k] = v
75 }
76 }
77 return req
78}
79
80// SetParam parameters after setting the URL
81func (req *Request) SetParam(k string, v interface{}) *Request {

Callers 6

DoMethod · 0.95
doFunction · 0.95
gDoFunction · 0.95
TestGetStandardFunction · 0.80
TestDeleteStandardFunction · 0.80
TestErrorFunction · 0.80

Calls

no outgoing calls

Tested by 3

TestGetStandardFunction · 0.64
TestDeleteStandardFunction · 0.64
TestErrorFunction · 0.64