diff --git a/framework/h/app.go b/framework/h/app.go index 51547cf..e8c6f5e 100644 --- a/framework/h/app.go +++ b/framework/h/app.go @@ -29,6 +29,10 @@ type RequestContext struct { kv map[string]interface{} } +func (c *RequestContext) FormValue(key string) string { + return c.Request.FormValue(key) +} + func (c *RequestContext) QueryParam(key string) string { return c.Request.URL.Query().Get(key) }