Add body return func
This commit is contained in:
parent
f9d077690b
commit
5f0b17436d
|
@ -14,6 +14,7 @@ type Request interface {
|
||||||
Path() string
|
Path() string
|
||||||
Scheme() string
|
Scheme() string
|
||||||
Param(string) string
|
Param(string) string
|
||||||
|
Body() []byte
|
||||||
}
|
}
|
||||||
|
|
||||||
// Represents the HTTP request used in the given context.
|
// Represents the HTTP request used in the given context.
|
||||||
|
@ -80,3 +81,8 @@ func (req *request) addParameter(key string, value string) {
|
||||||
Value: value,
|
Value: value,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Gets the request body.
|
||||||
|
func (req *request) Body() []byte {
|
||||||
|
return req.body
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user