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