Add body return func

This commit is contained in:
Sky Johnson 2024-09-05 10:12:15 -05:00
parent f9d077690b
commit 5f0b17436d

View File

@ -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
}