We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent baf7de7 commit 31fc8dfCopy full SHA for 31fc8df
server/rpc_request.go
@@ -47,6 +47,11 @@ func (r *rpcRequest) Header() map[string]string {
47
return r.header
48
}
49
50
+func (r *rpcRequest) Body() interface{} {
51
+ // TODO: convert to interface value
52
+ return r.body
53
+}
54
+
55
func (r *rpcRequest) Read() ([]byte, error) {
56
// got a body
57
if r.body != nil {
server/server.go
@@ -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)
58
// The encoded message stream
0 commit comments