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

Method FormValue

req_interface_gen.go:66–66  ·  view source on GitHub ↗

FormValue returns the first value by key from a MultipartForm. Search is performed in QueryArgs, PostArgs, MultipartForm and FormFile in this particular order. Defaults to the empty string "" if the form value doesn't exist. If a default value is given, it will return that value if the form value do

(key string, defaultValue ...string)

Source from the content-addressed store, hash-verified

64 // When the request is a multipart form, it is parsed using the application's
65 // BodyLimit so the configured limit is consistently enforced.
66 FormValue(key string, defaultValue ...string) string
67 // Fresh returns true when the response is still “fresh” in the client's cache,
68 // otherwise false is returned to indicate that the client cache is now stale
69 // and the full response should be sent.

Callers 15

FormValueMethod · 0.65
Test_Ctx_FormValueFunction · 0.65
Test_PostFunction · 0.65
Test_PutFunction · 0.65
Test_PatchFunction · 0.65
Test_Request_PostFunction · 0.65
Test_Request_PutFunction · 0.65

Implementers 1

Calls

no outgoing calls

Tested by 14

Test_Ctx_FormValueFunction · 0.52
Test_PostFunction · 0.52
Test_PutFunction · 0.52
Test_PatchFunction · 0.52
Test_Request_PostFunction · 0.52
Test_Request_PutFunction · 0.52
Test_Request_PatchFunction · 0.52