SetCommonHeader set a header for requests fired from the client.
(key, value string)
| 890 | |
| 891 | // SetCommonHeader set a header for requests fired from the client. |
| 892 | func (c *Client) SetCommonHeader(key, value string) *Client { |
| 893 | if c.Headers == nil { |
| 894 | c.Headers = make(http.Header) |
| 895 | } |
| 896 | c.Headers.Set(key, value) |
| 897 | return c |
| 898 | } |
| 899 | |
| 900 | // SetCommonHeaderNonCanonical set a header for requests fired from |
| 901 | // the client which key is a non-canonical key (keep case unchanged), |
no outgoing calls