EnableAllowGetMethodPayload allows sending GET method requests with body.
()
| 1363 | |
| 1364 | // EnableAllowGetMethodPayload allows sending GET method requests with body. |
| 1365 | func (c *Client) EnableAllowGetMethodPayload() *Client { |
| 1366 | c.AllowGetMethodPayload = true |
| 1367 | return c |
| 1368 | } |
| 1369 | |
| 1370 | func (c *Client) isPayloadForbid(m string) bool { |
| 1371 | return (m == http.MethodGet && !c.AllowGetMethodPayload) || m == http.MethodHead || m == http.MethodOptions |
no outgoing calls