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

Method SetCommonPathParam

client.go:463–466  ·  view source on GitHub ↗

SetCommonPathParam set a path parameter for requests fired from the client.

(key, value string)

Source from the content-addressed store, hash-verified

461
462// SetCommonPathParam set a path parameter for requests fired from the client.
463func (c *Client) SetCommonPathParam(key, value string) *Client {
464 c.pathParams()[key] = value
465 return c
466}
467
468// SetCommonPathParams set path parameters for requests fired from the client.
469func (c *Client) SetCommonPathParams(pathParams map[string]string) *Client {

Callers 3

TestSetCommonPathParamFunction · 0.80
TestClientCloneFunction · 0.80
SetCommonPathParamFunction · 0.80

Calls 1

pathParamsMethod · 0.95

Tested by 2

TestSetCommonPathParamFunction · 0.64
TestClientCloneFunction · 0.64