add server request body

This commit is contained in:
Asim Aslam
2019-02-04 13:13:03 +00:00
parent baf7de76bf
commit 31fc8df2ba
2 changed files with 7 additions and 0 deletions

View File

@@ -51,6 +51,8 @@ type Request interface {
ContentType() string
// Header of the request
Header() map[string]string
// Body is the initial decoded value
Body() interface{}
// Read the undecoded request body
Read() ([]byte, error)
// The encoded message stream