tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCCodec / encodeStreamEndRequest

encodeStreamEndRequest

static fun encodeStreamEndRequest(requestNumber: Int): Bytes! (source)

Encodes a message with the body and headers set in the appropriate way to end a stream.

Parameters

requestNumber - Int: the request number

Exceptions

JsonProcessingException - if the encoding fails

Return
Bytes!: the response encoded as an RPC request