static fun encodeResponse(body: Bytes, requestNumber: Int, flagByte: Byte): Bytes (source)
Encode a message as a response to a RPC request.
body - the body to encode as the body of the response
requestNumber - the request of the number. Must be equal or greater than one.
flagByte - the flags of the RPC response encoded as a byte
Return
the response encoded as a RPC response
static fun encodeResponse(body: Bytes, requestNumber: Int, flagByte: Byte, vararg flags: RPCFlag): Bytes (source)
Encode a message as a response to a RPC request.
body - the body to encode as the body of the response
requestNumber - the request of the number. Must be equal or greater than one.
flagByte - the flags of the RPC response encoded as a byte
flags - the flags of the RPC request
Return
the response encoded as a RPC response
static fun encodeResponse(body: Bytes, requestNumber: Int, vararg flags: RPCFlag): Bytes (source)
Encode a message as a response to a RPC request.
body - the body to encode as the body of the response
requestNumber - the request of the number. Must be equal or greater than one.
flags - the flags of the RPC request
Return
the response encoded as a RPC response