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

Method AddCommonQueryParam

client.go:435–441  ·  view source on GitHub ↗

AddCommonQueryParam add a URL query parameter with a key-value pair for requests fired from the client.

(key, value string)

Source from the content-addressed store, hash-verified

433// AddCommonQueryParam add a URL query parameter with a key-value
434// pair for requests fired from the client.
435func (c *Client) AddCommonQueryParam(key, value string) *Client {
436 if c.QueryParams == nil {
437 c.QueryParams = make(urlpkg.Values)
438 }
439 c.QueryParams.Add(key, value)
440 return c
441}
442
443// AddCommonQueryParams add one or more values of specified URL query parameter
444// for requests fired from the client.

Callers 3

TestAddCommonQueryParamFunction · 0.80
testQueryParamFunction · 0.80
AddCommonQueryParamFunction · 0.80

Calls 1

AddMethod · 0.80

Tested by 2

TestAddCommonQueryParamFunction · 0.64
testQueryParamFunction · 0.64