SetBaseURL sets the base URL prefix for all requests made by the client.
(url string)
| 404 | |
| 405 | // SetBaseURL sets the base URL prefix for all requests made by the client. |
| 406 | func (c *Client) SetBaseURL(url string) *Client { |
| 407 | c.mu.Lock() |
| 408 | defer c.mu.Unlock() |
| 409 | |
| 410 | c.baseURL = url |
| 411 | return c |
| 412 | } |
| 413 | |
| 414 | // Header returns all header values associated with the provided key. |
| 415 | func (c *Client) Header(key string) []string { |