MCPcopy Index your code
hub / github.com/imroc/req / EnableAutoDecode

Method EnableAutoDecode

client.go:839–842  ·  view source on GitHub ↗

EnableAutoDecode enable auto-detect charset and decode to utf-8 (enabled by default).

()

Source from the content-addressed store, hash-verified

837
838// EnableAutoDecode enable auto-detect charset and decode to utf-8 (enabled by default).
839func (c *Client) EnableAutoDecode() *Client {
840 c.Transport.EnableAutoDecode()
841 return c
842}
843
844// SetUserAgent set the "User-Agent" header for requests fired from the client.
845func (c *Client) SetUserAgent(userAgent string) *Client {

Callers 2

TestAutoDecodeFunction · 0.45
EnableAutoDecodeFunction · 0.45

Calls

no outgoing calls

Tested by 1

TestAutoDecodeFunction · 0.36