MCPcopy
hub / github.com/labstack/echo / FormValues

Method FormValues

context.go:412–423  ·  view source on GitHub ↗

FormValues returns the form field values as `url.Values`.

()

Source from the content-addressed store, hash-verified

410
411// FormValues returns the form field values as `url.Values`.
412func (c *Context) FormValues() (url.Values, error) {
413 if strings.HasPrefix(c.request.Header.Get(HeaderContentType), MIMEMultipartForm) {
414 if err := c.request.ParseMultipartForm(c.formParseMaxMemory); err != nil {
415 return nil, err
416 }
417 } else {
418 if err := c.request.ParseForm(); err != nil {
419 return nil, err
420 }
421 }
422 return c.request.Form, nil
423}
424
425// FormFile returns the multipart form file for the provided name.
426func (c *Context) FormFile(name string) (*multipart.FileHeader, error) {

Callers 6

TestContextFormValueFunction · 0.95
BindBodyFunction · 0.80
FormValueFunction · 0.80
FormValueOrFunction · 0.80
FormValuesFunction · 0.80
FormValuesOrFunction · 0.80

Calls 1

GetMethod · 0.45

Tested by 1

TestContextFormValueFunction · 0.76