1
0
mirror of https://github.com/kataras/iris.git synced 2025-12-21 20:07:04 +00:00

Update to 3.0.0-pre.release, Read HISTORY.md for new features and changes

Yes new features, with Iris you always get them on each version or
revision or non-semantic version
This commit is contained in:
Makis Maropoulos
2016-07-07 02:36:48 +02:00
parent 7723c22ef6
commit 0b8cb29e0c
7 changed files with 193 additions and 172 deletions

View File

@@ -286,18 +286,13 @@ func (ctx *Context) RequestHeader(k string) string {
return utils.BytesToString(ctx.RequestCtx.Request.Header.Peek(k))
}
// PostFormValue returns a single value from post request's data
func (ctx *Context) PostFormValue(name string) string {
return ctx.FormValueString(name)
}
// FormValueString returns a single value, as string, from post request's data
func (ctx *Context) FormValueString(name string) string {
return string(ctx.FormValue(name))
}
// PostFormMulti returns a slice of string from post request's data
func (ctx *Context) PostFormMulti(name string) []string {
// FormValues returns a slice of string from post request's data
func (ctx *Context) FormValues(name string) []string {
arrBytes := ctx.PostArgs().PeekMulti(name)
arrStr := make([]string, len(arrBytes))
for i, v := range arrBytes {