MCPcopy Create free account
hub / github.com/imroc/req / SetBaseURL

Method SetBaseURL

client.go:258–261  ·  view source on GitHub ↗

SetBaseURL set the default base URL, will be used if request URL is a relative URL.

(u string)

Source from the content-addressed store, hash-verified

256// SetBaseURL set the default base URL, will be used if request URL is
257// a relative URL.
258func (c *Client) SetBaseURL(u string) *Client {
259 c.BaseURL = strings.TrimRight(u, "/")
260 return c
261}
262
263// SetOutputDirectory set output directory that response will
264// be downloaded to.

Callers 4

tcFunction · 0.80
TestSetBaseURLFunction · 0.80
SetBaseURLFunction · 0.80
NewClientFunction · 0.80

Calls

no outgoing calls

Tested by 2

tcFunction · 0.64
TestSetBaseURLFunction · 0.64