// ReadRequestBody reads the body of the request func (sc *ServerCodec) ReadRequestBody(body interface{}) error { return bson.UnmarshalFromStream(sc.rwc, body) }
// ReadResponseBody reads the body of server response func (cc *ClientCodec) ReadResponseBody(body interface{}) error { return bson.UnmarshalFromStream(cc.rwc, body) }
// ReadRequestHeader reads the header of the request func (sc *ServerCodec) ReadRequestHeader(r *rpc.Request) error { return bson.UnmarshalFromStream(sc.rwc, &RequestBson{r}) }
// ReadResponseHeader reads the header of server response func (cc *ClientCodec) ReadResponseHeader(r *rpc.Response) error { return bson.UnmarshalFromStream(cc.rwc, &ResponseBson{r}) }