1
0
mirror of https://github.com/labstack/echo.git synced 2025-07-15 01:34:53 +02:00

Context#Form() > Context#FormValue(), Context#Query() > Context#QueryParam()

Signed-off-by: Vishal Rana <vr@labstack.com>
This commit is contained in:
Vishal Rana
2016-03-21 13:10:20 -07:00
parent 3d656d1808
commit 703174e58f
6 changed files with 41 additions and 23 deletions

View File

@ -63,13 +63,13 @@ type (
// Body returns request's body.
Body() io.Reader
// FormValue returns form field value for the provided name.
// FormValue returns the form field value for the provided name.
FormValue(string) string
// FormFile returns form file for the provided name.
// FormFile returns the multipart form file for the provided name.
FormFile(string) (*multipart.FileHeader, error)
// MultipartForm returns multipart form.
// MultipartForm returns the multipart form.
MultipartForm() (*multipart.Form, error)
}
@ -129,8 +129,8 @@ type (
// SetPath sets the request URL path.
SetPath(string)
// QueryValue returns query parameter value for the provided name.
QueryValue(string) string
// QueryParam returns the query param for the provided name.
QueryParam(string) string
// QueryString returns the URL query string.
QueryString() string