scuttlebutt-rpc / 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 - the flag byte encoding the body type

Return
the body type, either JSON, UTF_8_STRING or BINARY