1
This commit is contained in:
parent
089d415abc
commit
b4b8898e11
@ -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]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user