MCPcopy Index your code
hub / github.com/imroc/req / SetQueryParams

Method SetQueryParams

request.go:572–577  ·  view source on GitHub ↗

SetQueryParams set URL query parameters from a map for the request.

(params map[string]string)

Source from the content-addressed store, hash-verified

570
571// SetQueryParams set URL query parameters from a map for the request.
572func (r *Request) SetQueryParams(params map[string]string) *Request {
573 for k, v := range params {
574 r.SetQueryParam(k, v)
575 }
576 return r
577}
578
579// SetQueryParamsAnyType set URL query parameters from a map for the request.
580// The value of map is any type, will be convert to string automatically.

Callers 3

SetQueryParamsFunction · 0.80
testQueryParamFunction · 0.80
findTheMostPopularRepoFunction · 0.80

Calls 1

SetQueryParamMethod · 0.95

Tested by 1

testQueryParamFunction · 0.64