MCPcopy
hub / github.com/gofiber/fiber / AddFormData

Method AddFormData

client/request.go:493–497  ·  view source on GitHub ↗

AddFormData adds a single form field and value to the Request.

(key, val string)

Source from the content-addressed store, hash-verified

491
492// AddFormData adds a single form field and value to the Request.
493func (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.
500func (r *Request) SetFormData(key, val string) *Request {

Callers 1

Test_Request_FormDataFunction · 0.80

Calls 2

resetBodyMethod · 0.95
AddMethod · 0.65

Tested by 1

Test_Request_FormDataFunction · 0.64