EnableForceHTTP1 enable force using HTTP1 (disabled by default). Attention: This method should not be called when ImpersonateXXX, SetTLSFingerPrint or SetTLSHandshake and other methods that will customize the tls handshake are called.
()
| 1314 | // Attention: This method should not be called when ImpersonateXXX, SetTLSFingerPrint or |
| 1315 | // SetTLSHandshake and other methods that will customize the tls handshake are called. |
| 1316 | func (c *Client) EnableForceHTTP1() *Client { |
| 1317 | c.Transport.EnableForceHTTP1() |
| 1318 | return c |
| 1319 | } |
| 1320 | |
| 1321 | // EnableForceHTTP2 enable force using HTTP2 for https requests (disabled by default). |
| 1322 | // |
no outgoing calls