From b4b8898e1192b286b00ba04628f1f28f7e0b4f13 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 7 Jan 2021 10:25:07 +0800 Subject: [PATCH] 1 --- context.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/context.go b/context.go index 1db7285..b640b83 100644 --- a/context.go +++ b/context.go @@ -45,6 +45,10 @@ func (this *Context) Request(name string) *q5.XValue { return q5.Request(this.r, name) } +func (this *Context) GetBody() *q5.XValue { + return q5.GetPostBody(this.r) +} + func (this *Context) Header(name string) string { if val, ok := this.r.Header[name]; ok { return val[0]