This commit is contained in:
aozhiwei 2021-01-07 10:25:07 +08:00
parent 089d415abc
commit b4b8898e11

View File

@ -45,6 +45,10 @@ func (this *Context) Request(name string) *q5.XValue {
return q5.Request(this.r, name) return q5.Request(this.r, name)
} }
func (this *Context) GetBody() *q5.XValue {
return q5.GetPostBody(this.r)
}
func (this *Context) Header(name string) string { func (this *Context) Header(name string) string {
if val, ok := this.r.Header[name]; ok { if val, ok := this.r.Header[name]; ok {
return val[0] return val[0]