tuweni / org.apache.tuweni.scuttlebutt.rpc / RPCFlag / BodyType / extractBodyType

extractBodyType

static fun extractBodyType(flagByte: Byte): BodyType! (source)

Extract the body type from a flag byte

Parameters

flagByte - Byte: the flag byte encoding the body type

Return
BodyType!: the body type, either JSON, UTF_8_STRING or BINARY