MCPcopy Create free account
hub / github.com/imroc/req / EnableForceHTTP1

Method EnableForceHTTP1

client.go:1316–1319  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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.
1316func (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//

Callers 8

TestTrailerFunction · 0.45
testWithAllTransportFunction · 0.45
testEnableDumpAllFunction · 0.45
testEnableDumpFunction · 0.45
TestPathParamFunction · 0.45
TestFixPragmaCacheFunction · 0.45
EnableForceHTTP1Function · 0.45

Calls

no outgoing calls

Tested by 7

TestTrailerFunction · 0.36
testWithAllTransportFunction · 0.36
testEnableDumpAllFunction · 0.36
testEnableDumpFunction · 0.36
TestPathParamFunction · 0.36
TestFixPragmaCacheFunction · 0.36