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