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

Function handleFormData

middleware.go:187–190  ·  view source on GitHub ↗
(r *Request)

Source from the content-addressed store, hash-verified

185}
186
187func handleFormData(r *Request) {
188 r.SetContentType(header.FormContentType)
189 r.SetBodyBytes([]byte(r.FormData.Encode()))
190}
191
192var errBadOrderedFormData = errors.New("bad ordered form data, the number of key-value pairs should be an even number")
193

Callers 1

parseRequestBodyFunction · 0.85

Calls 2

SetContentTypeMethod · 0.80
SetBodyBytesMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…