diff --git a/Request.go b/Request.go index f8e65a6..a57272f 100644 --- a/Request.go +++ b/Request.go @@ -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 +}