AddHeaders adds multiple header fields and their values to the client.
(h map[string][]string)
| 439 | |
| 440 | // AddHeaders adds multiple header fields and their values to the client. |
| 441 | func (c *Client) AddHeaders(h map[string][]string) *Client { |
| 442 | c.mu.Lock() |
| 443 | defer c.mu.Unlock() |
| 444 | |
| 445 | c.header.AddHeaders(h) |
| 446 | return c |
| 447 | } |
| 448 | |
| 449 | // SetHeaders method sets multiple headers field and its values at one go in the client instance. |
| 450 | // These headers will be applied to all requests created from this client instance. Also it can be |