SetAutoDecodeContentType set the content types that will be auto-detected and decode to utf-8 (e.g. "json", "xml", "html", "text").
(contentTypes ...string)
| 813 | // SetAutoDecodeContentType set the content types that will be auto-detected and decode to utf-8 |
| 814 | // (e.g. "json", "xml", "html", "text"). |
| 815 | func (c *Client) SetAutoDecodeContentType(contentTypes ...string) *Client { |
| 816 | c.Transport.SetAutoDecodeContentType(contentTypes...) |
| 817 | return c |
| 818 | } |
| 819 | |
| 820 | // SetAutoDecodeContentTypeFunc set the function that determines whether the specified `Content-Type` should be auto-detected and decode to utf-8. |
| 821 | func (c *Client) SetAutoDecodeContentTypeFunc(fn func(contentType string) bool) *Client { |
no outgoing calls