AddFormData adds a single form field and value to the Request.
(key, val string)
| 491 | |
| 492 | // AddFormData adds a single form field and value to the Request. |
| 493 | func (r *Request) AddFormData(key, val string) *Request { |
| 494 | r.formData.Add(key, val) |
| 495 | r.resetBody(formBody) |
| 496 | return r |
| 497 | } |
| 498 | |
| 499 | // SetFormData sets a single form field and value, overriding any previously set value. |
| 500 | func (r *Request) SetFormData(key, val string) *Request { |