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

Method DisableAllowGetMethodPayload

client.go:1359–1362  ·  view source on GitHub ↗

DisableAllowGetMethodPayload disable sending GET method requests with body.

()

Source from the content-addressed store, hash-verified

1357
1358// DisableAllowGetMethodPayload disable sending GET method requests with body.
1359func (c *Client) DisableAllowGetMethodPayload() *Client {
1360 c.AllowGetMethodPayload = false
1361 return c
1362}
1363
1364// EnableAllowGetMethodPayload allows sending GET method requests with body.
1365func (c *Client) EnableAllowGetMethodPayload() *Client {

Callers 2

Calls

no outgoing calls

Tested by 1