setStructCodec method

void setStructCodec(
  1. bool enabled
)

Make every call on this channel request the struct codec (HEADERS marker dc-codec: struct-v1) and encode requests / decode responses with it. The server must enable it too (see Server.setStructCodec); otherwise calls fail UNIMPLEMENTED. Mirrors the Go Channel.SetStructCodec.

Implementation

void setStructCodec(bool enabled) {
  _structCodec = enabled;
}