AddQueryParams add one or more values of specified URL query parameter for the request.
(key string, values ...string)
| 605 | |
| 606 | // AddQueryParams add one or more values of specified URL query parameter for the request. |
| 607 | func (r *Request) AddQueryParams(key string, values ...string) *Request { |
| 608 | if r.QueryParams == nil { |
| 609 | r.QueryParams = make(urlpkg.Values) |
| 610 | } |
| 611 | vs := r.QueryParams[key] |
| 612 | vs = append(vs, values...) |
| 613 | r.QueryParams[key] = vs |
| 614 | return r |
| 615 | } |
| 616 | |
| 617 | // SetPathParams set URL path parameters from a map for the request. |
| 618 | func (r *Request) SetPathParams(params map[string]string) *Request { |
no outgoing calls