pub fn encode_request(
header: &TRequestHeader,
token: Option<&str>,
body: &impl Message,
attachments: Vec<Bytes>,
) -> Vec<Option<Bytes>>Expand description
Builds the bus parts for one request.
The body and the attachments are written as they are: with the codec set to
None, “compressing” is the identity, which is what
yt/go/bus/client.go does through compression.NewCodec(CodecIDNone).