MCPcopy Create free account
hub / github.com/kataras/iris / RequestQuery

Function RequestQuery

x/client/client.go:173–183  ·  view source on GitHub ↗

RequestQuery adds a set of URL query parameters to the request.

(query url.Values)

Source from the content-addressed store, hash-verified

171
172// RequestQuery adds a set of URL query parameters to the request.
173func RequestQuery(query url.Values) RequestOption {
174 return func(req *http.Request) error {
175 q := req.URL.Query()
176 for k, v := range query {
177 q[k] = v
178 }
179 req.URL.RawQuery = q.Encode()
180
181 return nil
182 }
183}
184
185// RequestParam sets a single URL query parameter to the request.
186func RequestParam(key string, values ...string) RequestOption {

Callers 3

GetCurrentByCityMethod · 0.92
GetCurrentByCityMethod · 0.92
RequestParamFunction · 0.85

Calls 2

EncodeMethod · 0.80
QueryMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…